Generate harmonious color palettes in OKLCH, the perceptually uniform color space behind modern design systems (and native in CSS). Free, and computed entirely in your browser. OKLCH fixes the classic HSL problem where colors at the same "lightness" look wildly different in brightness — in OKLCH, equal lightness actually looks equal, so a palette built by stepping lightness and rotating hue stays visually consistent across the scale. That is exactly how systematic UI color ramps (50–950 shades) are built. Adjust lightness, chroma, and hue with live feedback and copy CSS-ready oklch() values.
| Component | Range | Controls |
|---|---|---|
| L (lightness) | 0 – 1 | Perceived brightness, uniform across hues |
| C (chroma) | 0 – ~0.37 | Color intensity; 0 is gray |
| H (hue) | 0 – 360° | The color's angle on the wheel |
OKLCH is a perceptually uniform color space defined by Lightness (L), Chroma (C), and Hue (H). Unlike RGB or HSL, equal lightness values in OKLCH actually look equally bright, making it ideal for accessible, consistent color palettes.
L is Lightness (0%=black, 100%=white), C is Chroma (0=gray, higher=more vivid), H is Hue (0°–360° around the color wheel). Together they give perceptually meaningful control.
Some OKLCH combinations produce colors standard sRGB displays can't render. These are clamped for HEX/RGB output, but native oklch() CSS works on wide-gamut P3 displays in modern browsers.
Chrome 111+, Firefox 113+, Safari 15.4+, Edge 111+ — covering ~96% of global users.
It distributes lightness evenly from very light to very dark while keeping the hue fixed. Chroma peaks at mid-lightness and tapers at extremes to stay in gamut, giving you a Tailwind-style color scale.
APCA (Accessible Perceptual Contrast Algorithm) is a modern alternative to WCAG 2 contrast ratios. It better accounts for how humans perceive text contrast and is being considered for WCAG 3.
OKLCH interpolates hue in a circle, avoiding the muddy desaturated middle colors that sRGB interpolation produces. The Gradients section shows side-by-side comparison.
OKLCH color space generation provides perceptually uniform color manipulation superior to RGB or HSL. The tool converts colors through a three-step transformation: sRGB → Linear RGB → XYZ → Lab → LCh → OKLCH, where the O (Oklab) foundation ensures equal visual differences for equal numeric changes. Lightness (L) ranges 0-1 in human-perceived brightness, Chroma (C) controls saturation intensity, and Hue (H) cycles 0-360° in a perceptually balanced wheel. Palette generation algorithms maintain constant lightness while rotating hue, or create monochromatic scales by varying lightness with fixed hue/chroma. The tool displays gamut warnings when colors exceed sRGB boundaries and can clamp or convert to closest displayable values while preserving perceptual intent.