Tailwind Color Config Generator

Custom Tailwind CSS color scale configurations

Ad placeholder (leaderboard)

The Tailwind Color Config Generator turns one base color into a complete 50 to 950 shade scale and hands you the exact tailwind.config.js object to paste in. It keeps your hue intact and anchors your color at step 500, matching the convention of Tailwind’s built-in palettes.

How it works

The base hex is converted to HSL. The hue is held constant across all eleven steps; only lightness and a small saturation tweak change:

steps        = [50,100,200,300,400,500,600,700,800,900,950]
target L (%) = [97,94,86,76,64,52,44,36,28,20,13]
saturation   = baseS + (stepIndex − 5) × 2   // darker = a touch more saturated
hex(step)    = hslToHex(baseHue, saturation, target L)

Because step 500 maps near your base lightness, the color you pick lands in the middle of the ramp and the rest fan out symmetrically lighter and darker.

Tips and notes

Pick a mid-tone for your base — something around 45 to 60 percent lightness works best, since extremely light or dark inputs leave little room on one side of the ramp. After pasting into theme.extend.colors, you immediately get classes such as bg-brand-50, border-brand-300, and text-brand-900. The live swatch row above the code lets you sanity-check contrast before you commit the scale.

Ad placeholder (rectangle)