OKLCH
Lightness, chroma, and hue in OKLab. Perceptually uniform and ideal for palettes and accessibility.
oklch(62% 0.19 260)Pick a color visually or type any OKLCH, LCH, HEX, RGB, or HSL value — convert instantly with accurate sRGB gamut warnings.
Color chooser
Gamut & display
OKLCH / LCH can describe colors outside the sRGB gamut. A warning appears when the result is clipped for display.
Edit any value → press Enter
Click any output to copy it. HEX accepts #2563eb or 2563eb. OKLCH uses L in %, chroma 0–0.4, hue 0–360.
OKLCH → other formats
LCH → other formats
Lightness ladder
Click a swatch to load that lightness into the chooser.
Convert between OKLCH, LCH, HEX, RGB, and HSL with a modern, perceptually uniform color engine. Pick visually or type precise values — perfect for CSS Color 4/5 workflows, design systems, and accessible palettes.
An OKLCH / LCH Color Converter translates colors between modern perceptually uniform color spaces (OKLCH and LCH) and traditional formats such as HEX, RGB, and HSL. Instead of editing colors by trial and error, you can describe them using lightness, chroma, and hue — properties that map more closely to how humans actually perceive color.
OKLCH is defined in the CSS Color Module Level 4/5 specifications and is the OKLab-based polar form. LCH is the CIE Lab-based polar form. Both separate lightness and chroma from hue, which makes them ideal for building accessible, consistent design systems.
The converter uses a color-science pipeline: every input is normalized to CIE XYZ, then transformed into OKLab/OKLCH or CIE Lab/LCH, and finally to sRGB for preview and HEX output. Because OKLCH and LCH are wider than sRGB, some colors cannot be displayed exactly — those are flagged as out of gamut.
Each format serves a different purpose. Modern CSS supports all of them, and the converter moves between them in either direction.
Lightness, chroma, and hue in OKLab. Perceptually uniform and ideal for palettes and accessibility.
oklch(62% 0.19 260)Lightness, chroma, and hue derived from CIE Lab. Popular in design tools and wide-gamut workflows.
lch(55% 92 290)Six- or eight-digit hexadecimal sRGB notation used throughout the web.
#2563EBClassic sRGB channel and hue/saturation/lightness notation with near-universal support.
rgb(37, 99, 235)OKLCH and LCH values paste directly into CSS. Alpha is supported with a slash.
.button {
background-color: oklch(62% 0.19 260);
color: oklch(98% 0.01 260);
}
.button--soft {
background-color: oklch(92% 0.05 260 / 0.6);
}
.badge {
border-color: lch(55% 92 290 / 0.4);
}
Equal lightness steps look equal to the eye, unlike HEX/RGB where brightness changes unevenly.
Rotating hue at fixed lightness and chroma produces balanced palettes automatically.
OKLCH and LCH can describe colors beyond sRGB, matching display-P3 and modern hardware.
Lightness-first design makes WCAG contrast easier to reason about and maintain.
OKLCH does not check accessibility by itself — but its uniform lightness makes contrast management much easier. Text and interactive elements still need appropriate contrast against their backgrounds.
Use our Color Contrast Checker and APCA Contrast Checker to validate combinations, and see the WCAG guidelines.
Define tokens in OKLCH and convert to HEX/RGB for legacy consumers.
Move from HEX to OKLCH for better hover and state colors.
Generate harmonious palettes with consistent lightness.
Explore colors beyond sRGB and identify clipped results.
Build readable UIs by controlling lightness first.
Create perceptually even color scales for charts.
OKLCH is a perceptually uniform polar color space based on OKLab. It describes a color using lightness (L), chroma (C), and hue (H) and is supported by modern CSS.
LCH is a polar representation of CIE Lab. It also uses lightness, chroma, and hue but is based on CIE color science rather than OKLab.
Enter the OKLCH values into the converter. The tool transforms them to sRGB and displays the matching HEX value, with a warning if the color is out of sRGB gamut.
Yes. Enter a HEX, RGB, or HSL value and the converter outputs both OKLCH and LCH equivalents.
OKLCH and LCH can describe colors outside the sRGB range. When the converted HEX is clipped to sRGB, the color may look slightly different on an sRGB display.
Modern evergreen browsers support the CSS oklch() and lch() functions. Provide HEX or RGB fallbacks for older environments.
No. It makes lightness easier to control, but you still need to verify contrast with a dedicated contrast checker.
Yes. Alpha is preserved in the preview and included in CSS output where the format supports it.
Yes. It runs entirely in your browser, requires no sign-up, and your inputs are not uploaded.
Whether you are migrating a HEX palette to OKLCH, building a wide-gamut design system, or validating CSS output, this converter gives you accurate, copy-ready values across OKLCH, LCH, HEX, RGB, and HSL.