rgb-string-to-value.el
(defun rgb-string-to-values (val)
(interactive)
(format " %d %d %d"
(string-to-number (substring val 0 2) 16)
(string-to-number (substring val 2 4) 16)
(string-to-number (substring val 4 6) 16)
))
; test
(rgb-string-to-values "ffffff")
(rgb-string-to-values "007ab7")
(rgb-string-to-values "cbe6f3")
(rgb-string-to-values "a4c520")
(rgb-string-to-values "eef5d3")
(rgb-string-to-values "da5019")
(rgb-string-to-values "f9dfd5")