OKLCH Color Picker
Pick colors in the perceptually uniform OKLCH space — get OKLCH, HEX, RGB, HSL values instantly
Color Harmonies
Drag the L, C, and H sliders to pick any color in the OKLCH space — a perceptually uniform model where shifting the hue won't silently change how bright the color looks, unlike HSL. The picker converts your selection to HEX, RGB, and HSL in real time so you can copy whichever format fits your project. And everything runs in your browser. Nothing gets uploaded.
How It Works
Drag the Lightness slider to control how light or dark the color is (0% = black, 100% = white). Chroma sets saturation intensity — zero is gray, higher values are more vivid. Hue rotates around the color wheel from 0 to 360 degrees. The picker calculates the corresponding HEX, RGB, and HSL values in real time so you can grab whichever format your project needs.
Examples
Brand blue that matches your Figma mockup
Your designer handed you an OKLCH value from their design tool and you need the HEX for a legacy email template.
L: 55% C: 0.25 H: 264
oklch(0.55 0.25 264)
HEX: #3B5FE6
RGB: rgb(59, 95, 230)
Building an accessible green for dark mode
You need a green that hits WCAG contrast on a #1a1a1a background. With OKLCH you can raise Lightness until contrast passes without the green turning muddy.
L: 78% C: 0.18 H: 145
oklch(0.78 0.18 145)
HEX: #4EC972
RGB: rgb(78, 201, 114)
Semi-transparent overlay for a hero section
You want a warm orange overlay at 40% opacity on top of a photo. OKLCH with alpha keeps the color vivid even when transparent — unlike HSLA where it often looks washed out.
L: 72% C: 0.19 H: 55
Alpha: 0.4
oklch(0.72 0.19 55 / 0.4)
RGBA: rgba(224, 152, 48, 0.4)
Who Uses This
Grabbing oklch() values for CSS custom properties, dark mode palettes, and gradient stops that look evenly spaced.
Creating perceptually uniform color scales where every step feels like the same jump in brightness.
Tuning lightness precisely so text-background combos hit WCAG contrast ratios on the first try.
Picking thumbnail and banner colors that pop on screen without clashing — OKLCH makes it hard to accidentally pick an ugly combo.
Common Mistakes
OKLCH can describe colors outside what your monitor can display. If Chroma is cranked past ~0.3 at certain hues, the browser will clamp it to the nearest displayable value and you get a different shade than expected. Keep Chroma under 0.25 for sRGB-safe results.
LCH (CIE LCH) and OKLCH look similar but they are not the same thing. OKLCH fixes a hue-shift problem that LCH has at blue-to-purple ranges. If you paste an LCH value into an oklch() function, the color will be wrong. Double-check which space your source value came from.
Safari 15, pre-Chromium Edge, and IE don't understand oklch(). Always put a HEX or RGB fallback on the line before: color: #3B5FE6; color: oklch(0.55 0.25 264);. Browsers that support oklch() will use the second declaration and ignore the first.
Technical Details
- Processing: 100% client-side — no server round-trips
- Browser Support: Chrome 111+, Firefox 113+, Safari 15.4+, Edge 111+
- Color Space: OKLCH (Oklab Lightness, Chroma, Hue) per CSS Color Level 4
- Output Formats: oklch(), HEX, RGB, HSL with optional alpha
- Gamut: sRGB display gamut with out-of-gamut warnings
Frequently Asked Questions
What is OKLCH and why should I use it instead of HSL?
OKLCH is a color space where the Lightness value actually matches what your eyes perceive. In HSL, a yellow at 50% lightness looks way brighter than a blue at 50% lightness. OKLCH removes that inconsistency, so when you set two colors to the same L value they genuinely look equally bright. It is better for building color scales, accessible palettes, and any situation where perceptual uniformity matters.
Can I use oklch() in CSS right now?
Yes. Chrome, Edge, Firefox, and Safari all support oklch() in their current versions. Global support is above 90% as of early 2026. For the remaining slice of users on older browsers, add a HEX or RGB fallback on the line before your oklch() declaration. The browser ignores whichever property it doesn't understand.
What do Lightness, Chroma, and Hue mean in OKLCH?
Lightness (L) goes from 0 (black) to 1 (white) and controls brightness. Chroma (C) is how vivid the color is — 0 is a neutral gray, higher values are more saturated. Hue (H) is the angle on the color wheel, from 0 to 360 degrees. Red is around 25, yellow near 90, green near 145, and blue around 265.
How do I convert OKLCH to HEX?
Set the L, C, and H values in the picker above and the HEX value appears automatically. The math goes OKLCH to Oklab to linear sRGB to gamma-corrected sRGB to HEX. You don't need to do any of that yourself — the tool handles the entire conversion chain in one step.
Is OKLCH the same as Oklab?
They're related but not identical. Oklab uses rectangular coordinates (L, a, b) while OKLCH uses cylindrical coordinates (Lightness, Chroma, Hue). Think of it like the difference between X/Y coordinates and angle/distance on a map — same underlying data, different way of expressing it. OKLCH is usually easier for humans to reason about because hue and saturation are separate sliders instead of abstract a/b axes.