Generate Tailwind color shades from any color
Enter one or more colors with a name and this Tailwind color generator creates a full 50 to 950 scale for each, matching Tailwind’s structure. Copy it as a tailwind.config.js (v3) or as @theme CSS variables for Tailwind v4.
Scales that feel like Tailwind’s own
Your color sits at 500, and lighter and darker steps are spaced in OKLCH with reduced chroma at the extremes, the same approach Tailwind’s default palette uses. Utilities like bg-brand-50 and text-brand-900 are then ready to use.
Build a complete system
Need neutrals and success, warning and error colors too? The Brand Kit Builder exports a full Tailwind config. For plain CSS or Sass, use the CSS Color Variables Generator or SCSS Color Generator, and check text shades with the Color Contrast Checker.
About the Tailwind Color Generator
Tailwind expects eleven steps per color. We place your color at 500 and distribute lighter and darker steps in OKLCH, reducing chroma at the extremes the way Tailwind's default palette does. Like every ColorMoodHub tool, it is free and runs entirely in your browser, so nothing you enter or upload is sent to a server.
Tailwind Color Generator: frequently asked questions
How do I add custom colors to Tailwind?
Add them under theme.extend.colors in tailwind.config.js (v3), or as --color-name-500 variables in @theme (v4). The tool generates both.
Which shade is my original color?
Your input color is used exactly as the 500 shade.
Can I generate several colors at once?
Yes, add one "name #hex" per line.
Does it work with Tailwind v4?
Yes, choose the @theme CSS output.