Skip to content
← Color Tools

OKLCH Color Picker

Pick colors in OKLCH space with lightness, chroma, and hue sliders. See P3 and sRGB gamut boundaries live.

OKLCH Color Picker

Pick colors in OKLCH space with lightness, chroma, and hue sliders. See P3 and sRGB gamut boundaries live.

Why OKLCH Beats HSL for Real Design Work

HSL has been the go-to non-RGB color space for CSS for over a decade, but it has a quiet problem: equal numerical steps do not feel equal to the human eye. A 10-point lightness jump on a yellow looks much smaller than the same jump on a blue, which is why HSL-generated palettes usually need hand-correction. OKLCH fixes this by replacing HSL with a perceptually uniform space. Equal lightness numbers in OKLCH look far closer to equally bright across hues than HSL ones do, and changing lightness or chroma leaves the perceived hue nearly unchanged. It is a model fitted to perception data, so it is close to uniform rather than perfect. The space is now native in every modern browser through the CSS oklch() function, which means a value you pick here will render in your CSS without any conversion. The result for designers is fewer hand-tuned palette stops, cleaner brand systems, and predictable behavior across hues. The result for developers is a color format that finally maps cleanly to design tokens and shade scales without the muddy midpoints HSL is known for.

How to Use This OKLCH Picker

Drag the lightness slider to move from black at 0 to white at 1, the chroma slider to move from gray at 0 to maximum colorfulness at roughly 0.4, and the hue slider for the full 360-degree wheel. The live preview swatch updates instantly and the CSS string at the bottom is ready to copy into a stylesheet. Two gamut indicators sit next to the swatch. sRGB is the standard color space every browser and monitor supports, while Display P3 covers a wider range of saturated colors that modern phones, tablets, and most recent laptops can show. When a color falls outside one of these gamuts the corresponding badge turns red, and a screen that cannot show it will display a nearby colour instead. Pull the chroma slider down until both badges turn green for a value that displays consistently everywhere, or accept the warning and let modern displays show the richer color while older displays fall back gracefully. The tool also outputs the color in HEX, RGB and HSL. When it is outside sRGB, those three are the nearest sRGB colour found the CSS Color 4 way (lower OKLCH chroma, keep lightness and hue) rather than each channel clipped, and a two-line CSS fallback appears: hex first, oklch() second, so older browsers use the hex and newer ones the full colour.

Building Shade Scales the OKLCH Way

One of the practical wins from working in OKLCH is the way it transforms shade-scale generation. The traditional HSL approach steps lightness from 95 down to 5 at fixed increments and accepts that the result needs hand-correction at the middle stops, especially for yellow and orange where HSL lightness loses fidelity quickly. The OKLCH approach steps OKLCH lightness instead, which gives a much more even scale across hues with little or no correction. Pick a 500-stop brand color in this picker, then read off the OKLCH lightness value (Tailwind blue-500, #3b82f6, is about 0.62). To generate the rest of the scale, hold hue, step lightness up for the lighter stops and down for the darker ones, and lower chroma where a stop falls outside sRGB (very light and very dark stops cannot carry much colour); the Tailwind v4 OKLCH Palette tool automates this with the canonical 11-stop spacing. The picker is the workbench for designing the 500 stop; the palette generator is the production line for the rest of the scale.

Frequently Asked Questions

What is OKLCH and why does it matter?+
OKLCH is the polar form of Oklab, a colour space published by Björn Ottosson in 2020: L is lightness (0 to 1), C is chroma (colourfulness) and H is hue in degrees. It is close to perceptually uniform, so equal steps look much more even than in HSL. CSS Color Module Level 4 defines the oklch() function, so browsers can use it directly, and Tailwind CSS v4 defines its default palette in OKLCH.
Which browsers support oklch() in CSS?+
Chrome and Edge 111+, Firefox 113+ and Safari 15.4+ (MDN browser compatibility data). For older browsers, use the CSS with fallback line the tool shows for out-of-sRGB colours, or put a hex value before the oklch() declaration: browsers that do not understand oklch() keep the hex.
What does the chroma slider actually do?+
Chroma is the OKLCH equivalent of saturation, but unlike HSL saturation it is not capped at 100. The maximum usable chroma depends on the hue and lightness: yellows can hit roughly 0.21 in sRGB, blues can reach about 0.31, and most colors live below 0.15. The slider goes up to 0.4 so you can explore the full Display P3 range; the gamut badges warn you when a chroma value falls outside the device space.
Why does the gamut warning sometimes turn red?+
It turns red when the OKLCH value describes a colour too saturated for that gamut. The sRGB badge is the one that matters for every screen; a P3-only colour looks richer on wide-gamut phones and laptops and falls back to a nearby colour elsewhere. The HEX, RGB and HSL outputs then show that nearest sRGB colour, found by lowering chroma at the same lightness and hue (checked against the coloraide library on 8 test colours: identical hex codes).
How is OKLCH different from LAB and LCH?+
Older LAB and LCH are based on the CIE 1976 model, which gets the perceptual uniformity roughly right for grays and pastels but breaks down for saturated colors, especially in the blue region. OKLab and OKLCH use a more recent model fitted to broader perceptual data, and the result is noticeably better behavior for purples, blues, and saturated brand colors. OKLCH is the recommended choice for new design system work; legacy LCH stays available in CSS for backwards compatibility.
Can I paste a HEX color and edit it in OKLCH?+
Yes. Type or paste any HEX, RGB, or HSL value into the input at the top and the sliders snap to the OKLCH equivalent. From there you can nudge lightness or chroma without touching the hue, which is the workflow that makes OKLCH genuinely faster than hand-mixing in HSL for shade and tint generation.
Why does my OKLCH color look different in two browsers?+
Mostly the display: an sRGB monitor cannot show a P3-only colour and shows a nearby one, while a wide-gamut screen shows it as picked. How out-of-gamut colours are brought into range has also differed between browser versions. Keep the sRGB badge green when the colour must match everywhere.
Does the picker run entirely in my browser?+
Yes. The colour math runs locally with the culori library (MIT licence, version 4.0.2), which the page loads from the jsDelivr CDN when it opens. Nothing about the colour you pick is sent anywhere.

Built by Derek Giordano · Part of Ultimate Design Tools

Privacy Policy · Terms of Service