Menu

OKLCH / LCH Color Converter

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.

✓ Copied!
PROFESSIONAL COLOR CONVERTER • CSS • DESIGN

OKLCH / LCH Color Converter

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.

OKLCHLCHHEXRGBHSL
OKLCHPerceptually uniform, CSS Color 4/5
LCHCIE Lab-based polar color space
HEXClassic web sRGB hex notation
RGB / HSLLegacy but widely supported formats
01
COLOR FUNDAMENTALS

What Is an OKLCH / LCH Converter?

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.

Simple idea: OKLCH / LCH let you describe a color the way you see it — how light it is, how intense it is, and what hue it has — then convert it to any format your project needs.
02
HOW IT WORKS

How the Converter Works

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.

01InputOKLCH, LCH, HEX, RGB, or HSL.
02ConvertColor-science transforms via XYZ.
03PreviewLive sRGB preview with alpha.
04CopyCSS-ready values in one click.
03
DIGITAL COLOR SYSTEMS

OKLCH, LCH, HEX, RGB, and HSL

Each format serves a different purpose. Modern CSS supports all of them, and the converter moves between them in either direction.

OKLCH

OKLCH

Lightness, chroma, and hue in OKLab. Perceptually uniform and ideal for palettes and accessibility.

oklch(62% 0.19 260)
LCH

LCH

Lightness, chroma, and hue derived from CIE Lab. Popular in design tools and wide-gamut workflows.

lch(55% 92 290)
HEX

HEX

Six- or eight-digit hexadecimal sRGB notation used throughout the web.

#2563EB
RGB / HSL

RGB & HSL

Classic sRGB channel and hue/saturation/lightness notation with near-universal support.

rgb(37, 99, 235)
04
WEB DEVELOPMENT

Using OKLCH and LCH in CSS

OKLCH and LCH values paste directly into CSS. Alpha is supported with a slash.

CSS EXAMPLEMODERN CSS
.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);
}
05
PERCEPTUAL COLOR

Why Use OKLCH / LCH Instead of HEX?

01

Uniform Lightness

Equal lightness steps look equal to the eye, unlike HEX/RGB where brightness changes unevenly.

02

Predictable Palettes

Rotating hue at fixed lightness and chroma produces balanced palettes automatically.

03

Wide Gamut Ready

OKLCH and LCH can describe colors beyond sRGB, matching display-P3 and modern hardware.

04

Accessible Contrast

Lightness-first design makes WCAG contrast easier to reason about and maintain.

06
COMPARISON

OKLCH vs LCH vs HEX

FORMATSTRENGTHBEST FOR
OKLCHPerceptually uniform lightnessDesign systems, palettes, CSS
LCHCIE Lab accuracy, wide gamutPrint, color matching, tooling
HEXSimple and universalEveryday web use
RGB / HSLBroad support, familiarLegacy CSS and libraries
07
ACCESSIBILITY

OKLCH and Color Contrast

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.

08
USE CASES

Common Uses

Design Systems

Define tokens in OKLCH and convert to HEX/RGB for legacy consumers.

CSS Development

Move from HEX to OKLCH for better hover and state colors.

Brand Palettes

Generate harmonious palettes with consistent lightness.

Wide Gamut Work

Explore colors beyond sRGB and identify clipped results.

Accessibility

Build readable UIs by controlling lightness first.

Data Visualization

Create perceptually even color scales for charts.

09
BEST PRACTICES

Tips for OKLCH & LCH

  • Start from a base hue. Pick a hue angle, then tune lightness and chroma.
  • Keep chroma realistic. Very high chroma may be out of sRGB gamut.
  • Use consistent lightness steps. OKLCH lightness maps well to perceived brightness.
  • Check gamut warnings. Clipped colors may render differently on sRGB screens.
  • Verify contrast. Use dedicated contrast tools for text and controls.
  • Provide fallbacks. Supply HEX or RGB values for older browsers when needed.
12
FREQUENTLY ASKED QUESTIONS

OKLCH / LCH Converter FAQ

What is OKLCH?

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.

What is LCH?

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.

How do I convert OKLCH to HEX?

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.

Can I convert HEX to OKLCH or LCH?

Yes. Enter a HEX, RGB, or HSL value and the converter outputs both OKLCH and LCH equivalents.

What does “out of gamut” mean?

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.

Is OKLCH supported in browsers?

Modern evergreen browsers support the CSS oklch() and lch() functions. Provide HEX or RGB fallbacks for older environments.

Does OKLCH guarantee accessibility?

No. It makes lightness easier to control, but you still need to verify contrast with a dedicated contrast checker.

Does the converter support alpha?

Yes. Alpha is preserved in the preview and included in CSS output where the format supports it.

Is this converter free and private?

Yes. It runs entirely in your browser, requires no sign-up, and your inputs are not uploaded.

CONVERT • DESIGN • SHIP

Convert OKLCH and LCH With Confidence

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.

OKLCHLCHHEXRGBHSLCSS Colors