OKLCH Color Palette Generator

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.

OKLCH components

ComponentRangeControls
L (lightness)0 – 1Perceived brightness, uniform across hues
C (chroma)0 – ~0.37Color intensity; 0 is gray
H (hue)0 – 360°The color's angle on the wheel

When to use it

  1. Build a 50–950 shade ramp for a design-system color token set.
  2. Create accessible hover and active states by stepping lightness predictably.
  3. Generate a multi-hue categorical palette whose colors feel equally vivid.
  4. Convert a brand color into a full tint-and-shade scale.

How to Use

  1. Use the Create tab to build a palette: switch between Controls (L/C/H sliders) or Color (paste a hex) mode.
  2. Choose the amount of colors (5–13), color space (sRGB or P3), and contrast settings.
  3. Hover over any swatch to see its contrast ratio against your comparison color. Icons indicate pass/fail.
  4. Visit Color Palettes for pre-built palettes inspired by popular design systems (Radix, Tailwind).
  5. Use Gradients to compare OKLCH vs sRGB gradient interpolation side-by-side.
  6. The Gamut Visualizer shows the full sRGB gamut boundary at any hue angle.
  7. Use Bulk Convert to convert multiple HEX colors to OKLCH at once.
  8. Click 'Copy CSS Variables' to export your entire palette as CSS custom properties.

Features

  1. Create palettes with Controls (L/C/H) or direct Hex color input
  2. Adjustable palette size from 5 to 13 colors
  3. sRGB and Display P3 color space support
  4. Per-swatch WCAG 2 and APCA contrast checking with configurable comparison color
  5. Surface type options: Normal Text, Large Text, UI Component
  6. 16 pre-built OKLCH color palettes inspired by Radix/Tailwind
  7. OKLCH vs sRGB gradient comparison with linear/radial types
  8. Interactive Gamut Visualizer with sRGB boundary overlay
  9. Bulk HEX to OKLCH converter for batch workflows
  10. One-click CSS custom properties export
  11. Color blindness simulation (Protanopia, Deuteranopia, Tritanopia)
  12. Fully browser-based — no data leaves your device

FAQs

What is OKLCH and why should I use it?

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.

What do L, C, and H stand for?

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.

What does 'out of sRGB gamut' mean?

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.

Which browsers support oklch() CSS?

Chrome 111+, Firefox 113+, Safari 15.4+, Edge 111+ — covering ~96% of global users.

How does the palette generator work?

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.

What is APCA contrast?

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.

How does the OKLCH gradient comparison work?

OKLCH interpolates hue in a circle, avoiding the muddy desaturated middle colors that sRGB interpolation produces. The Gradients section shows side-by-side comparison.

Technical Details

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.

From the Blog

  • CSS Gradient Generator — Free Visual Builder

Generator Tools

Generator Tools

  • QR Code Generator
  • Barcode Generator
  • WiFi QR Code Generator
  • Password Generator
  • Certificate Generator
  • Receipt Generator
  • Signature Pad
  • Password Strength Checker