How to convert colors in RGB format to hex format and vice versa?
For example, convert \'#0080C0\' to (0, 128, 192).
While this answer is unlikely to fit the question perfectly it may be very useful none the less.
var toRgb = document.createElement('div');
toRg.style.color = "hsl(120, 60%, 70%)";
> toRgb.style.color;
< "rgb(133, 225, 133)" Your color has been converted to Rgb
Works for: Hsl, Hex
Does not work for: Named colors