Tailwind CSS Color Conventions
In a professional design system, colors are rarely used in isolation. Instead, they are often defined as a 10-step scale spanning from 50 (lightest) to 950 (darkest). This generator helps you craft consistent scales that feel native to Tailwind's default palette.
Tailwind CSS v4 Integration
Tailwind CSS v4 introduces a new way to define themes directly in your CSS file using the @theme block. Instead of modifying a tailwind.config.js file, you now use CSS variables. Our generated code provides the variables and the mapping required for the v4 compiler to recognize your new utility classes like bg-brand-500.
How the shades are generated
To ensure your custom color scales look natural, this tool uses the HSL (Hue, Saturation, Lightness) color space. It automatically preserves the base hue of your selected color while mathematically adjusting the saturation and lightness to create the full spectrum of shades. You can use the "Adjust" sliders to fine-tune the vibrancy of the lighter and darker ends of the scale.
Choosing a Color Name
When picking a name for your color, avoid literal names like "red" or "blue" if you intend to use them for branding. Using semantic names like primary, brand, or cta makes your code more maintainable should you decide to change your brand's color later.