OKLCH Converter
Convert between OKLCH and sRGB and preserve alpha. Inspect out-of-gamut channels before selecting an optional reduced-chroma or clipped fallback.
Choose an sRGB Fallback for OKLCH
Outside the sRGB gamut. Choose a fallback to produce an sRGB value.
- 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
Preview composited on white. HEX stores alpha in 8 bits; decimal alpha is retained in RGB and HSL.
#7D9065rgb(125, 144, 101)hsl(86.512 17.551% 48.039%)rgb(49.02% 56.471% 39.608%)0.4902, 0.5647, 0.3961, 1--color: #7D9065;Color names use standard CSS keywords, such as red or rebeccapurple.
OKLCH Converter: how to use it
- Choose a direction. Paste numeric oklch() CSS or a supported sRGB color.
- Check the native OKLCH output and the unclipped linear sRGB channels.
- 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.