parseCssColor
The color of the CSS color text, in sRGB; null when it is not a color. Reads named colors, transparent, hexadecimal colors of 3, 4, 6 or 8 digits, rgb(), rgba(), hsl(), hsla() and the color functions of CSS Color 4 and 5: hwb(), lab(), lch(), oklab(), oklch(), color() with the predefined color spaces, color-mix() and light-dark(). Keywords that depend on where the color is used, like currentcolor, are not colors here.