Tools / HEX to OKLCH converter
HEX to OKLCH converter
Paste a HEX value and get the OKLCH result right away, plus every other format.
How HEX converts to OKLCH
Linearize the RGB channels, convert them to the OKLab color space, then express OKLab as lightness, chroma and hue. OKLCH lightness is perceptual, so equal steps look equally different.
Common colors in HEX and OKLCH
| Color | HEX | OKLCH |
|---|---|---|
| red | #FF0000 | oklch(62.8% 0.258 29.2) |
| orange | #FFA500 | oklch(79.3% 0.171 70.7) |
| gold | #FFD700 | oklch(88.7% 0.182 95.3) |
| lime | #00FF00 | oklch(86.6% 0.295 142.5) |
| teal | #008080 | oklch(54.3% 0.093 194.8) |
| navy | #000080 | oklch(27.1% 0.188 264.1) |
| indigo | #4B0082 | oklch(33.9% 0.179 301.7) |
| purple | #800080 | oklch(42.1% 0.193 328.4) |
| hotpink | #FF69B4 | oklch(72.8% 0.197 352.0) |
| coral | #FF7F50 | oklch(73.5% 0.168 40.2) |
| chocolate | #D2691E | oklch(63.4% 0.155 50.3) |
| gray | #808080 | oklch(60.0% 0.000 89.9) |
| silver | #C0C0C0 | oklch(80.8% 0.000 89.9) |
| black | #000000 | oklch(0.0% 0.000 0.0) |
How to use it
Three quick steps.
- Type or paste a HEX value (the # is optional).
- Read the OKLCH result instantly.
- Click any value to copy it.
Good to know
Get better results.
- You can also paste a hex code, rgb(), hsl() or a color name. The tool understands them all.
- Every other format is shown too, so one lookup covers all your needs.
- Values are rounded to whole numbers where it makes sense.
Common questions
How do I convert HEX to OKLCH?
Linearize the RGB channels, convert them to the OKLab color space, then express OKLab as lightness, chroma and hue. OKLCH lightness is perceptual, so equal steps look equally different.
Is this HEX to OKLCH converter free?
Yes. It is free, private and runs in your browser, so your colors are never uploaded.
Can I convert from other formats too?
Yes. Enter a hex code, rgb(), hsl() or a CSS color name and you still get every format.
More tools
Keep going with a related tool.