HEX to OKLCH
Convert a HEX colour code to OKLCH and OKLab for modern CSS, with lightness, chroma and hue shown separately, plus RGB and HSL. Free hex to oklch converter.
Runs in your browser. Nothing is uploaded.
About HEX to OKLCH
OKLCH describes a colour by lightness, chroma (colourfulness) and hue, like HSL, but its lightness matches what people actually see. A yellow and a blue with the same L look equally light, which makes it much easier to build consistent colour scales.
Paste a hex code or pick a colour to get the oklch() and oklab() values ready for CSS, plus HEX, RGB and HSL. Tailwind CSS v4 and many design systems now define their palettes in OKLCH.
How to use HEX to OKLCH
- Enter your values in the fields.
- The answer updates instantly as you type.
- Press Copy result to save the breakdown.
Frequently asked questions
Do browsers support oklch()?
Yes. Chrome, Edge, Firefox and Safari have all supported oklch() since 2023.
Why is chroma such a small number?
Chroma in OKLCH usually runs from 0 (grey) to about 0.37 for the most vivid colours a screen can show.
Is HEX to OKLCH free and private?
Yes. HEX to OKLCH is completely free with no sign-up. Everything runs in your browser, so whatever you type or paste never leaves your device.