Developer Tool

Tailwind Color Generator

Generate custom 50–950 color scales for Tailwind CSS v4 from any base color. Export as @theme directives or standard CSS variables.

Generated Code

About the Tailwind Color Generator

The Tailwind Color Generator is designed for the CSS-first configuration model in Tailwind CSS v4. Instead of manually tweaking 11 different hex values, provide your brand color and the generator instantly calculates a perfect 50–950 scale.

How It Works

Your base color becomes the 500 weight. The tool calculates 5 tints (mixed with white) for the lighter weights (50–400) and 5 shades (mixed with black) for the darker weights (600–950). This ensures a mathematically smooth transition across your entire palette.

Output Formats

  • Tailwind CSS v4 (@theme): Uses the native @theme directive, enabling utility classes like text-primary-500 automatically.
  • CSS Variables (:root): Standard custom properties that work in any framework or vanilla CSS.

Frequently Asked Questions