Tailwind palette generator (50-950)
Type one brand colour, get the full 11-step shade ramp (50-950) β computed in the OKLab perceptual colour space so hue stays consistent. Copy as Tailwind v4 @theme, v3 config, or CSS variables.
Shade preview (ΞE to closest shade = 0.038)
Output format
theme
@theme {
--color-brand-50: #dcf7ff;
--color-brand-100: #c3eaff;
--color-brand-200: #9dd2ff;
--color-brand-300: #75b3ff;
--color-brand-400: #4b8ffd;
--color-brand-500: #276ee0;
--color-brand-600: #0251c1;
--color-brand-700: #00369e;
--color-brand-800: #001a75;
--color-brand-900: #000650;
--color-brand-950: #000030;
}
βΊHow to use
- Type your brand colour (hex / rgb / hsl / oklch all work) and a name for the generated identifiers (e.g.
brand-500). - The shade preview updates instantly β click any swatch to copy its hex; 11 shades from lightest to darkest.
- Pick an output format below: Tailwind v4
@theme, v3 config, CSS variables, or a plain hex list. Hit Copy in the corner to grab the snippet. - Tool state is mirrored into the URL hash β copy the URL to share a palette.
Tips
- The maths runs in the OKLab perceptual colour space, so hue stays put and lightness steps look even. Beats raw HSL lightness tweaks.
- Tailwind v4 ships OKLCH support β
@themeis the recommended output if you're on v4 already. - Name sanitiser: anything becomes
kebab-case(My Brand!βmy-brand); empty falls back tobrand. - Want to match an existing Tailwind preset? Drop its 500 (e.g.
#0ea5e9forsky) β our 500 will be near-identical, with other shades tuned for brand consistency rather than matching the official numbers exactly.
Related tools
- Color format converterLive two-way conversion between hex / rgb / hsl / oklch / oklab + nearest Tailwind class
- WCAG + APCA contrast checkerLive WCAG 2.1 ratio + APCA Lc for any foreground/background pair, with one-click fix suggestion when failing
- Colour-blindness Simulator (8 + normal)Brettel / Machado matrix simulation of 8 deficiencies. Compare palettes or your own image side-by-side. Designer-grade accessibility check