01What is Tailwind Palette Generator?
You have one brand color and Tailwind wants eleven. This tool fills that gap. It takes a single base color and builds a scale named 50, 100, 200 through 900 and 950, the same shade names Tailwind CSS uses for its own colors. The method is simple on purpose, and it all happens in HSL. The tool reads your color's hue and saturation, then pairs them with a fixed lightness for each shade. Shade 50 gets 97 percent lightness, 500 gets 50 percent and 950 gets 10 percent, with stops like 85, 62, 40 and 24 in between. At the two ends, 50 and 950, saturation drops to 70 percent of the original (never below 5) so the palest and darkest shades don't glow. Here is what that means in practice. Feed it Tailwind's blue-500, #3b82f6. That color has hue 217, saturation 91 and lightness 60. The tool keeps 217 and 91 but forces 500 to 50 percent lightness, so your 500 comes out as #0b64f4, a deeper blue than the one you typed. Pure red, #ff0000, already sits at 50 percent lightness, so its 500 matches the input exactly. Each shade appears as a swatch and as a row in a table with its HEX value, its HSL value and the Tailwind class it would create, such as bg-brand-500 for a color named brand. The name field only keeps lowercase letters, digits and hyphens. Click a swatch or the copy icon to grab one hex. The full scale exports three ways. Tailwind v4 @theme gives a block of --color-brand-500 style variables for your main CSS file, which is how v4 turns theme variables into utilities. v3 Config gives a tailwind.config.js snippet under theme.extend.colors. CSS Variables gives plain --brand-500 properties inside :root. Now the honest part. This is not Tailwind's palette. Tailwind v4 ships hand-tuned colors defined in OKLCH, and this tool neither copies them nor works in OKLCH. HSL lightness is not perceptual, so a yellow 400 looks far brighter than a blue 400. The black or white label on each swatch comes from a quick brightness formula, not a WCAG contrast ratio, and there is no contrast checking at all. The hex text box takes six-digit codes or three-digit shorthand like #38f, typed or pasted, and the scale updates as soon as the code is complete. The color math is plain JavaScript in the page, and your colors never leave your browser tab.
Frontend developers who need a full Tailwind-style 50-950 scale from one brand hex and are happy to fine-tune the result afterwards. The tool runs entirely in your browser, so your data never leaves your device.
02How to use Tailwind Palette Generator
- Pick a base color with the color picker, or type or paste a hex such as #3b82f6 into the text box
- Type a color name such as brand or accent, which is used in the class and variable names
- Look over the 50-950 swatches and the Shade, HEX, HSL and Tailwind Class table, clicking any swatch to copy its hex
- Choose Tailwind v4 @theme, v3 Config or CSS Variables under Export and copy the output
- Paste the @theme block into your main CSS file, or the v3 snippet into tailwind.config.js
03Worked examples
- Input:
Base color #3b82f6 - Result:
50 #f2f6fc, 100 #dde9fd, 200 #b6d1fc, 300 #85b2f9, 400 #468af6, 500 #0b64f4, 600 #0950c3, 700 #07409c, 800 #063075, 900 #042253, 950 #09162a - The base color's hue (217) and saturation (91%) are kept, but every shade uses a fixed lightness, and 500 is always 50% lightness, so the 500 shade (#0b64f4) isn't the color you entered (60% lightness).
- Input:
Base color #ff0000 - Result:
50 #fdf2f2, 100 #ffdbdb, 200 #ffb3b3, 300 #ff8080, 400 #ff3d3d, 500 #ff0000, 600 #cc0000, 700 #a30000, 800 #7a0000, 900 #570000, 950 #2b0808 - Pure red is already at 50% lightness, so here 500 matches the input exactly; 50 and 950 use 70% of the saturation, which is why they look slightly greyer.
- Input:
Base color #808080 - Result:
50 #f8f7f7, 100 #ededed, 200 #d9d9d9, 300 #bfbfbf, 400 #9e9e9e, 500 #808080, 600 #666666, 700 #525252, 800 #3d3d3d, 900 #2b2b2b, 950 #1b1818 - A grey has 0% saturation, but the 50 and 950 shades are given a minimum of 5% saturation at hue 0, so they come out with a faint red tint.
- Input:
Base color #f59e0b - Result:
50 #fcf9f2, 100 #fef2dd, 200 #fce2b6, 300 #facf85, 400 #f7b645, 500 #f59f0a, 600 #c47f08, 700 #9d6607, 800 #764c05, 900 #533603, 950 #2a1e09 - This amber sits at hue 38, saturation 92, lightness 50, so 500 (#f59f0a) lands one step off the input because of HSL rounding.
- Input:
Base color #10b981, color name brand, Tailwind v4 export - Result:
/* app.css (Tailwind CSS v4) */ @import "tailwindcss"; @theme { --color-brand-50: #f3fcf9; --color-brand-100: #defcf2; … --color-brand-500: #14eba3; … --color-brand-950: #0b281e; } - Truncated; the swatch text color switches from black to white at 700 for this green but at 400 for pure red, because it is chosen from each shade's brightness.
04Common use cases
- Turning a single brand hex from a style guide into a full 50-950 scale for a new Tailwind project
- Adding a custom accent color to a Tailwind v4 app by pasting the generated @theme block into app.css
- Extending an older Tailwind v3 project's tailwind.config.js with a brand color under theme.extend.colors
- Getting a quick first draft of a shade range to hand to a designer for tuning in Figma
- Producing plain CSS custom properties for a project that doesn't use Tailwind at all
- Checking what the HSL hue and saturation of a color actually are before building a theme around it
05Tips
- Your exact brand hex only lands in the scale if its HSL lightness is exactly 50. If it isn't, paste it over the closest shade by hand after exporting.
- The black or white swatch label is a rough brightness guess. Run real text and background pairs through a WCAG contrast checker before you ship them.
- Yellows and cyans look much brighter than blues at the same step because HSL lightness isn't perceptual. If the scale feels uneven, an OKLCH-based tool will give smoother steps.
- In Tailwind v4, defining --color-brand-* inside @theme is what creates bg-brand-*, text-brand-* and border-brand-* utilities. The plain CSS Variables export won't do that.
- Greys pick up a faint red tint at 50 and 950, because those shades get a minimum 5 percent saturation at hue 0. Swap them for neutral greys if that bothers you.
06Related concepts
HSL color model, Tailwind CSS, @theme, Design tokens, OKLCH color space.
Frequently Asked Questions
What is Tailwind Palette Generator?
Tailwind Palette Generator is a free, browser-based developer tool on AIDToolStack. Generate a full 50-950 Tailwind-style color palette from any base color. It requires no installation or sign-up and works entirely in your browser.
Is Tailwind Palette Generator free to use?
Yes. No sign-up, no fees and no usage cap.
Does Tailwind Palette Generator store my data?
No. It runs in your browser; nothing is uploaded.