hexcolors

Tools / RGB to OKLCH converter

RGB to OKLCH converter

Paste a RGB value and get the OKLCH result right away, plus every other format.

How RGB converts to OKLCH

Linearize the RGB channels, transform them to OKLab, then convert the two color axes into chroma and hue. The result can be used directly in modern CSS as oklch().

Common colors in RGB and OKLCH

ColorRGBOKLCH
redrgb(255, 0, 0)oklch(62.8% 0.258 29.2)
orangergb(255, 165, 0)oklch(79.3% 0.171 70.7)
goldrgb(255, 215, 0)oklch(88.7% 0.182 95.3)
limergb(0, 255, 0)oklch(86.6% 0.295 142.5)
tealrgb(0, 128, 128)oklch(54.3% 0.093 194.8)
navyrgb(0, 0, 128)oklch(27.1% 0.188 264.1)
indigorgb(75, 0, 130)oklch(33.9% 0.179 301.7)
purplergb(128, 0, 128)oklch(42.1% 0.193 328.4)
hotpinkrgb(255, 105, 180)oklch(72.8% 0.197 352.0)
coralrgb(255, 127, 80)oklch(73.5% 0.168 40.2)
chocolatergb(210, 105, 30)oklch(63.4% 0.155 50.3)
grayrgb(128, 128, 128)oklch(60.0% 0.000 89.9)
silverrgb(192, 192, 192)oklch(80.8% 0.000 89.9)
blackrgb(0, 0, 0)oklch(0.0% 0.000 0.0)

How to use it

Three quick steps.

  1. Type or paste a RGB value.
  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 RGB to OKLCH?

Linearize the RGB channels, transform them to OKLab, then convert the two color axes into chroma and hue. The result can be used directly in modern CSS as oklch().

Is this RGB 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.