colorparsley (npm): colorParsley() • a lightweight yet versatile color parsing function with no dependencies. Takes various color strings, numbers, or objects, and turns them into simple arrays. Bonus utilities colorToHex() and colorToRGB() included
Keywords: color|colour|CSS|contrast|design tools|string parsing|HSL|HWB|sRGB|RGB|RGB parsing|hex string|regex|colors|css|css4|displayp3|hex|hsl|hwb|javascript|parser|rgb|srgb|string-formatter|string-matching|string-parsing|string-pattern-matching