Tailwind Color Scale

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

  1. Enter a base color — Paste a hex code for the color you want to build a scale around.
  2. Generate the scale — The tool creates a full Tailwind-style shade scale from 50 (lightest) to 950 (darkest) based on your input.
  3. Preview the palette — See all shades rendered as swatches with their hex values and contrast ratios against white and black text.
  4. Export for Tailwind — Copy the complete tailwind.config.js color 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.

StepGeneratedOn whiteTailwind blueOn white
50#f1f4f91.10:1#eff6ff1.09:1
200#c8d9f31.43:1#bfdbfe1.42:1
400#679ef82.68:1#60a5fa2.54:1
500#3b82f6 (your colour)3.68:1#3b82f63.68:1
700#0848b18.16:1#1d4ed86.70:1
900#0a255115.04:1#1e3a8a10.36:1

Related tools

Frequently Asked Questions

How is the scale generated?
In HSL. Your colour is used as-is for 500. The lighter steps (50–400) are spread between its lightness and 96%, the darker ones (600–950) between its lightness and 10%, keeping your hue and saturation (reduced for the lightest and darkest steps).
Can I export directly to tailwind.config.js?
Yes. The tool generates copy-ready JavaScript/TypeScript config objects that you can paste directly into your Tailwind configuration's extend.colors section.
Will custom scales work with Tailwind's opacity modifiers?
Yes. Generated colors use hex or RGB format, which work seamlessly with Tailwind's opacity modifier syntax like bg-brand-500/50.
How does it handle very light or very dark base colors?
Your colour always stays at 500, and the other steps are spread between it and the ends of the range. A very light colour leaves little room for lighter steps (50–400 come out nearly the same), and a very dark one does the same for 600–950, so a mid-tone colour gives the most useful scale.
Can I generate scales for multiple colors at once?
Generate one scale at a time, then copy each to your config. For a complete multi-color palette, use the Design System Builder which handles multiple color families simultaneously.
How does Tailwind's color scale work?+
Tailwind uses a numeric scale from 50 (very light) to 950 (very dark) for each color family. The 500 shade is considered the 'base' or default. Lighter shades work for backgrounds and borders; darker shades work for text and emphasis. Each shade is designed to have predictable contrast relationships.
Can I create custom color scales for Tailwind?+
Yes, extend the colors in tailwind.config.js. Provide an object with numeric keys (50, 100, 200... 900, 950) mapping to hex values. This tool generates that exact format. You can name the scale anything you want and use it with any Tailwind utility (bg-brand-500, text-brand-900).
How many shades should a Tailwind color scale have?+
Tailwind's built-in colors use 11 shades (50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950). For custom brand colors, matching this convention ensures compatibility with Tailwind's utility classes and keeps your design system predictable.
How do I create a custom Tailwind color scale?+
Start with your brand color at the 500 shade. Generate lighter tints (50-400) and darker shades (600-950) with proper saturation and hue adjustments. This tool automates the entire scale generation.
How many shades should a Tailwind scale have?+
Tailwind's default uses 11 steps: 50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950. Each step should have enough contrast difference to be visually distinguishable and functionally useful.

📖 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

Privacy Policy · Terms of Service