OKLCH Scale Generator
Perceptually uniform 50-950 scales with chroma curves, hue shift and WCAG analysis
OKLCH Perceptual Scale Generator
Generate perceptually uniform color scales with hue shift, chroma curves, WCAG analysis and multi-format export.
Quick Presets
Why OKLCH?
- • Perceptually uniform: equal steps look equally different
- • Better for accessibility: predictable contrast ratios
- • Hue stability: colors don't shift when adjusting lightness
- • Native CSS support: oklch() function in modern browsers
- • Used by Tailwind v4, Figma, and CSS Color Level 5
How it works
OKLCH is a perceptually uniform color space revolutionizing web design. This tool generates professional 50-950 scales with advanced controls: chroma curves, hue shift, WCAG analysis and 5 export formats.
What does OKLCH mean?
- O: Oklab (the base color space)
- L: Lightness (0-1)
- C: Chroma (saturation/vividness)
- H: Hue (0-360°)
Tool Controls
- Base color + presets: Choose your color or pick from 8 quick presets
- Chroma boost: Control overall scale saturation (0.3x to 1.8x)
- 4 chroma curves: Bell, Linear, Ease In or Ease Out to control how saturation varies
- Lightness range: Adjust the lightest (50) and darkest (950) steps
- Hue Shift: Gradually rotate hue across the scale (-30° to +30°) for warmer or cooler scales
- Gamut warnings: Detects colors outside the sRGB space
4 Analysis Tabs
- Scale: Visual view with configurable background + detailed cards with WCAG AA/AAA badges and contrast ratios
- Curves: SVG graph of lightness and chroma across the scale + hue values
- HSL vs OKLCH: Side-by-side comparison showing OKLCH's perceptual superiority
- Export: CSS Variables (HEX/OKLCH), Tailwind Config, SCSS and Design Tokens JSON
💡 Practical Examples
Case 1: Brand palette with hue shift
Your brand color is #3B82F6 (Blue). Apply +15° hue shift so lighter shades lean cooler and darker shades lean warmer, creating a more natural and professional scale.
Case 2: Verify WCAG accessibility
Each step shows AA/AAA badges for white and black text. Use steps 500-950 with white text (pass AA) and 50-400 with black text. Exact ratios are shown on each card.
Case 3: Chroma curve for UI
Use the "Bell" curve so extreme colors (50, 950) are more neutral and central ones (400-600) are most vibrant. Ideal for buttons, alerts and CTAs.