Tailwind Color Scale Generator — OKLCH, 11-Step
Drop in your brand color — get a perfect 50/100/200/.../900/950 Tailwind v4 color scale using the OKLCH algorithm shadcn/ui uses. APCA-validated for legibility on white and black.
FAQ — Tailwind Color Scale Generator
Why OKLCH instead of HSL for color scales?
HSL scales have inconsistent perceived lightness — orange-500 looks brighter than blue-500 at the same HSL L. OKLCH fixes this with perceptually uniform lightness, so the scale "feels" balanced.
How does APCA validation work?
For each of the 11 steps, GradientLab calculates APCA Lc against pure white and pure black. Steps with |Lc| ≥ 60 are marked "readable" — typical Tailwind palettes have 5-7 steps readable on each side.
Can I export the scale as a shadcn theme?
Yes — click "Copy shadcn theme" for ready-to-paste @layer base { :root { ... } } CSS with HSL-format vars. Includes light + dark mode.
What if my brand color is too saturated for a clean scale?
OKLCH chroma is auto-adjusted per step — saturation peaks at the 500 step and fades at the extremes. Very saturated brand colors still produce balanced scales.
Should I use this with Tailwind v3 or v4?
Both. v3 uses HEX values, v4 uses OKLCH directly. The exporter outputs HEX (works for both); for v4 native, copy as raw OKLCH from the picker.