OKLCH()
Here’s why: oklch() isn’t just a way of defining colours with lightness, chroma, and hue in CSS. It’s also a function. You can use the magical from keyword in this function to convert hex colours to l, c, and h:
--page-colour: oklch(from #49498D l c h);
Published: 2025-05-17