OKLCH Color Picker, Converter & Palette Generator
Convert any CSS color to OKLCH, generate contrast-audited color scales, and export production-ready Tailwind CSS, Shadcn and design tokens.
#3b82f6rgb(23.137% 50.98% 96.471%)hsl(217 91.2% 59.8%)oklab(62.3% -0.033 -0.185)color(display-p3 0.305 0.503 0.934)What do you want to build?
Build a 50–950 production scale from one color.
Export an OKLCH @theme block for Tailwind v4.
WCAG & APCA contrast, plus nearest accessible color.
HEX, RGB, HSL, OKLCH, LAB, LCH and Display P3.
Generate complete light and dark semantic tokens.
Convert stylesheet colors safely with fallbacks and diff.
One color → production scale
Every stop is gamut-mapped and includes black/white contrast data.
Preview it in real UI
Buttons, inputs, alerts, cards and semantic states in light and dark mode.
Export without cleanup
Tailwind v4, Shadcn, CSS variables, SCSS, JSON Tokens and Style Dictionary.
@import "tailwindcss";
@theme {
--color-brand-50: oklch(0.976 0.015 225.93);
--color-brand-100: oklch(0.926 0.038 247.2);
--color-brand-200: oklch(0.842 0.08 254.37);
--color-brand-300: oklch(0.765 0.121 257.47);Why OKLCH?
Equal lightness steps look equally light — unlike HSL, where hue skews perceived brightness.
Scales stay on-hue and evenly spaced, so 50–950 ramps look intentional, not muddy.
Reach vivid Display P3 and Rec.2020 colors with a clean sRGB fallback.
Frequently asked questions
What is OKLCH?
OKLCH is a CSS Color 4 model with Lightness, Chroma and Hue built on the perceptually-uniform Oklab space. Equal numeric changes produce roughly equal visual changes.
How do I convert HEX to OKLCH?
Paste any hex value above. It is parsed and shown as oklch(L C H) with copyable HEX, RGB, HSL and P3 alongside.
Is OKLCH supported in browsers?
Yes — oklch() is supported in all current major browsers. Provide an sRGB fallback for older ones; this tool can generate it.
Does OKLCH guarantee WCAG compliance?
No. OKLCH makes contrast easier to reason about, but you must still check ratios. Use the contrast checker for exact WCAG 2.1 and APCA values.
What happens outside sRGB?
Colors are gamut-mapped using the CSS Color 4 algorithm (chroma reduction in OKLCH), not naive channel clipping, keeping hue and lightness stable.