element.style.color
is determined by the stylesheet, which could be specified as rgba(121, 110, 12, 14);
, or rgb(...
, hsl
, #afd544
, etc.
I'm looking to convert element.style.color
into a standard value (such as an RGB-triple or hex string) using JavaScript. How can this be achieved?