stringToColor
Parse a CSS color string: a hex color, a color keyword, or an rgb, hsl, lab or lch function.
Unsupported functions are returned as FunctionColor without parsing their content.
Return
the parsed color, or null if value is not a valid color.