OKLCH to RGB
Convert OKLCH coordinates through OKLab to sRGB and report whether channels required gamut clipping.
Your workspace
Server processingThis tool converts colors defined in the OKLCH coordinate system into standard sRGB values and checks if the resulting color fits within the sRGB gamut.
Converting OKLCH coordinates
- Enter the Lightness value between 0 and 1.
- Set the Chroma value (0 to 0.5) and the Hue in degrees (0 to 360).
- Review the resulting sRGB hex code and the gamut clipping status to see if the color is reproducible in standard sRGB.
The conversion method
The tool maps OKLCH coordinates through the OKLab color space to arrive at sRGB values. Because OKLCH can describe a wider range of colors than standard sRGB displays can show, the tool performs a check to see if the requested color exceeds the sRGB gamut boundaries.
Understanding gamut clipping
If the gamut clipping report returns true, the requested color is technically outside the sRGB color space. This means the resulting hex code is an approximation clamped to the nearest representable color within the sRGB gamut.
Conversion example
Lightness: 0.5, Chroma: 0.1, Hue: 140
Hex: #6a8c78, ClippedToSRGB: false
OKLCH conversion questions
What does the gamut clipping report indicate?
It indicates whether the requested OKLCH color is outside the range of colors that standard sRGB displays can reproduce.
Is the output color exact if clipping occurs?
No, if clipping is required, the output is clamped to the nearest color that fits within the sRGB gamut, which may differ from your input.
Continue your workflow
RGB to HEX
Convert three RGB channels to a six-digit hexadecimal color.
Color Blend Calculator
Mix two colors by a chosen proportion using sRGB channels or linear-light RGB.
Color Blindness Simulator
Apply approximate protanopia, deuteranopia or tritanopia RGB matrices to an uploaded image; simulations do not diagnose vision.
Color Contrast Checker
Calculate WCAG contrast ratio for two opaque sRGB colors.