hexcolors

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

ColorHEXOKLCH
red#FF0000oklch(62.8% 0.258 29.2)
orange#FFA500oklch(79.3% 0.171 70.7)
gold#FFD700oklch(88.7% 0.182 95.3)
lime#00FF00oklch(86.6% 0.295 142.5)
teal#008080oklch(54.3% 0.093 194.8)
navy#000080oklch(27.1% 0.188 264.1)
indigo#4B0082oklch(33.9% 0.179 301.7)
purple#800080oklch(42.1% 0.193 328.4)
hotpink#FF69B4oklch(72.8% 0.197 352.0)
coral#FF7F50oklch(73.5% 0.168 40.2)
chocolate#D2691Eoklch(63.4% 0.155 50.3)
gray#808080oklch(60.0% 0.000 89.9)
silver#C0C0C0oklch(80.8% 0.000 89.9)
black#000000oklch(0.0% 0.000 0.0)

How to use it

Three quick steps.

  1. Type or paste a HEX value (the # is optional).
  2. Read the OKLCH result instantly.
  3. 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.