What Is the Tailwind Color Scale Generator?
Generate custom Tailwind CSS color scales from a single base color. Create 50-950 shade scales that match Tailwind's distribution pattern.
Why Use This Tool?
Tailwind's default palette doesn't cover every brand color. This tool generates a full 50-950 shade scale from any base color, using a fixed lightness ladder similar in spirit to Tailwind's (see the worked example for how it differs).
How to Use This Tailwind Color Scale
- Enter a base color — Paste a hex code for the color you want to build a scale around.
- Generate the scale — The tool creates a full Tailwind-style shade scale from 50 (lightest) to 950 (darkest) based on your input.
- Preview the palette — See all shades rendered as swatches with their hex values and contrast ratios against white and black text.
- Export for Tailwind — Copy the complete
tailwind.config.jscolor extension, ready to paste into your project.
Worked example: Tailwind's own blue-500 as the input
On October 12, 2026 we entered #3b82f6 (Tailwind v3's blue-500) and compared the copied config with Tailwind's real blue scale, including each shade's contrast against white.
| Step | Generated | On white | Tailwind blue | On white |
|---|---|---|---|---|
| 50 | #f1f4f9 | 1.10:1 | #eff6ff | 1.09:1 |
| 200 | #c8d9f3 | 1.43:1 | #bfdbfe | 1.42:1 |
| 400 | #679ef8 | 2.68:1 | #60a5fa | 2.54:1 |
| 500 | #3b82f6 (your colour) | 3.68:1 | #3b82f6 | 3.68:1 |
| 700 | #0848b1 | 8.16:1 | #1d4ed8 | 6.70:1 |
| 900 | #0a2551 | 15.04:1 | #1e3a8a | 10.36:1 |
- Your colour is the 500 step, exactly. Since v181 the tool keeps your hex at 500 and spreads the other steps between your colour's HSL lightness and the light end (96%) above it, and the dark end (10%) below it. Before v181 every scale used a fixed lightness ladder, so blue-500 came back at the 400 step and the generated 500 was a different, darker blue (#0b60ea).
- Light steps track Tailwind closely; dark steps run darker. The 50–400 steps are within a few hundredths of Tailwind's contrast on white, while 700 and 900 are darker than Tailwind's hand-tuned blues (8.16 vs 6.70:1 at 700). Check text contrast if you mix generated and default colours.
- Very light or very dark inputs. A near-white 500 (for example #f8fafc) leaves little room above it, so 50–400 are almost identical; a near-black 500 does the same below it. Pick a mid-tone brand colour for a full-range scale.
- Hue and saturation. The hue never changes; light steps use 40–70% of your saturation and the darkest 85%, unlike Tailwind's scales, which drift slightly in hue.
- Exports. A tailwind.config.js colours object or CSS custom properties; for Tailwind v4, paste the CSS variables into an
@themeblock as--color-brand-500and so on.
Sources
Checked on .
Related tools
- For Tailwind v4 projects specifically (which moved to OKLCH internally), the Tailwind v4 OKLCH Palette generates a v4-native 50-950 scale rather than the v3 HSL approximation.
- A single 50-950 scale is one slice; the Semantic Color Token Generator emits all six semantic scales (primary through error) covering an entire design system.
Frequently Asked Questions
📖 Learn More
Related Article The Complete Guide to Tailwind CSS Colors → Related Article How to Generate Tailwind Color Scales →Built by Derek Giordano · Part of Ultimate Design Tools