Color · Made a little simpler

OKLCH Converter

Convert between OKLCH and sRGB and preserve alpha. Inspect out-of-gamut channels before selecting an optional reduced-chroma or clipped fallback.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device

Outside the sRGB gamut. Choose a fallback to produce an sRGB value.

Native OKLCH previewDisplay rendering depends on your browser and screen.
OKLCH CSS
oklch(70% 0.4 35 / 0.6)
OKLab CSS
oklab(70% 0.327660818 0.229430575 / 0.6)
Unclipped linear sRGB
1.872825, -0.161251, -0.10711
Alpha
0.6
#7D9065rgb(125, 144, 101)

Preview composited on white. HEX stores alpha in 8 bits; decimal alpha is retained in RGB and HSL.

HEX#7D9065
RGBrgb(125, 144, 101)
HSLhsl(86.512 17.551% 48.039%)
RGB percentrgb(49.02% 56.471% 39.608%)
Normalized RGBA0.4902, 0.5647, 0.3961, 1
CSS variable--color: #7D9065;

Color names use standard CSS keywords, such as red or rebeccapurple.

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

OKLCH Converter: how to use it

  1. Choose a direction. Paste numeric oklch() CSS or a supported sRGB color.
  2. Check the native OKLCH output and the unclipped linear sRGB channels.
  3. If the color is outside sRGB, keep the native value or choose an explicit fallback. Copy the color or download the report.

Limits and notes

Numeric OKLCH accepts lightness 0–1 or 0–100%, chroma 0–1, hue angles and alpha 0–1 or 0–100%. Hue none is supported when chroma is zero. sRGB output uses 8-bit channels.

How your privacy works →

OKLCH Converter: common questions

Why is there no HEX output for an outside-gamut color?

The original OKLCH cannot be represented exactly with sRGB channels. Choose one of the labeled fallback methods if you need a HEX value.

What does Reduce chroma preserve?

It lowers chroma at the original OKLCH lightness and hue. The output sRGB swatch has rounded 8-bit channels. Alpha remains unchanged.

When does hue become none?

A neutral sRGB color converts to zero chroma. A missing hue in the native output avoids inventing an angle for gray.

Guides