Function: browserColorToHex()
browserColorToHex(color): string
Converts an arbitrary browser color value into a hexadecimal string (RRGGBB).
If the provided color string is anything other than a hex code, it will use a canvas to determine the hex value.
Parameters
color
string
Returns
string