Tailwind Color Scale Generator
Generate a balanced 11-step 50–950 color ramp from any brand hex, pin your exact brand stop, check WCAG contrast, and copy Tailwind v4 or v3 code.
11-Step Perceptual Ramp (brand-50 → brand-950)
Token Hierarchy in Practice
Subtle brand-50 surfaces pair naturally with brand-200 hairlines and brand-600 primary actions.
@theme {
--color-brand-50: oklch(0.973 0.012 271.3);
--color-brand-100: oklch(0.939 0.029 264.4);
--color-brand-200: oklch(0.875 0.061 265.6);
--color-brand-300: oklch(0.785 0.109 264.4);
--color-brand-400: oklch(0.687 0.164 263.8);
--color-brand-500: oklch(0.592 0.215 262.9);
--color-brand-600: oklch(0.546 0.215 262.9);
--color-brand-700: oklch(0.421 0.186 261.3);
--color-brand-800: oklch(0.348 0.146 260.6);
--color-brand-900: oklch(0.277 0.113 259.9);
--color-brand-950: oklch(0.192 0.073 258.5);
}How to Use This Tool
- Enter your brand hex color, semantic token name (e.g. brand, primary, emerald), and optional temperature hue shift.
- Toggle Pin Exact Brand Hex to guarantee your core brand color appears verbatim in the exported scale.
- Inspect the UI previews and contrast audit table, then copy the Tailwind v4 @theme CSS block or v3 JS config.
Key Features
- 11-step OKLCH lightness & chroma bell-curve scale (50 through 950) with optional Bezold-Brucke temperature shift
- Exact Brand Hex Pinning locks your original hex onto the closest perceptual stop instead of mutating brand identity
- Built-in 11x2 WCAG AA/AAA contrast audit matrix against light canvas (#ffffff) and dark ink (#09090b)
- Live interactive UI previews (buttons, status badges, stats cards, dark surface cards) + 1-click Tailwind v4 @theme & v3 config copy
Frequently Asked Questions
All stops sharing an OKLCH lightness value look equally bright across hues. A blue-500 and a yellow-500 built in OKLCH balance visually side-by-side without blowing out readability.
Strict math generators sometimes tweak your exact brand hex (like #2563EB) into #2461EA so it sits strictly on a curve. Pinning keeps your exact hex verbatim on its closest step and smooths neighboring stops around it.
More Color Tools
View all tools →Contrast Checker
Check text and UI contrast against WCAG AA/AAA and APCA standards, with 1-click fixes.
Color Palette Generator
Press Spacebar to generate balanced palettes, lock favorite swatches, and export anywhere.
UI Palette Visualizer
Preview your palette live across 7 full-page website and app layouts on desktop, tablet, and mobile.
Shades, Tints & Tones
Generate matching lighter tints, darker shades, and muted tones from any base color.