OKLCH / Lab color converter

Convert between HEX/RGB and OKLCH, CIELAB, LCH — for perceptually-uniform color work.

Converted in this browser — nothing is sent anywhere.

OKLab/OKLCH per Ottosson (2020); CIELAB/CIELCh against the D65 white point. Out-of-gamut OKLCH chroma is reduced to the nearest displayable color.

How to use

  1. Enter a HEX color or pick one.
  2. Read the OKLCH, Lab, and LCH values.
  3. Copy the format you need for CSS.

What it supports

D65 conversions via sRGB→linear→XYZ→Lab→LCh and OKLab/OKLCH. Values outside the sRGB gamut are clamped on the way back. Precision is display-level, not colorimetry-lab grade.

Related tools

Related guides