Tailwind Palette Generator
Pick a brand color, get the full 50-950 shade scale, and copy it straight into your Tailwind config or @theme block. Live preview, multiple export formats, runs in your browser.
Used as the key in tailwind.config.js and as a prefix for v4 variables.
The hue from this color is preserved across the entire scale.
Live preview
11 shades from your base color. Click any swatch to copy its hex.
Tailwind v3 config
Paste into theme.extend.colors
// tailwind.config.js
module.exports = {
theme: {
extend: {
colors: {
'primary': {
'50': '#f6f2fd',
'100': '#eae1fa',
'200': '#d5c2f4',
'300': '#b99bee',
'400': '#8c52ef',
'500': '#6316e9',
'600': '#4f11bb',
'700': '#420e9a',
'800': '#361471',
'900': '#290f57',
'950': '#190934',
},
},
},
},
};Tailwind v4 @theme
Paste into globals.css
/* globals.css — Tailwind v4 */
@theme {
--color-primary-50: #f6f2fd;
--color-primary-100: #eae1fa;
--color-primary-200: #d5c2f4;
--color-primary-300: #b99bee;
--color-primary-400: #8c52ef;
--color-primary-500: #6316e9;
--color-primary-600: #4f11bb;
--color-primary-700: #420e9a;
--color-primary-800: #361471;
--color-primary-900: #290f57;
--color-primary-950: #190934;
}Design tokens (DTCG JSON)
Style Dictionary, Tokens Studio
{
"primary.50": {
"$value": "#f6f2fd",
"$type": "color"
},
"primary.100": {
"$value": "#eae1fa",
"$type": "color"
},
"primary.200": {
"$value": "#d5c2f4",
"$type": "color"
},
"primary.300": {
"$value": "#b99bee",
"$type": "color"
},
"primary.400": {
"$value": "#8c52ef",
"$type": "color"
},
"primary.500": {
"$value": "#6316e9",
"$type": "color"
},
"primary.600": {
"$value": "#4f11bb",
"$type": "color"
},
"primary.700": {
"$value": "#420e9a",
"$type": "color"
},
"primary.800": {
"$value": "#361471",
"$type": "color"
},
"primary.900": {
"$value": "#290f57",
"$type": "color"
},
"primary.950": {
"$value": "#190934",
"$type": "color"
}
}Want a production-ready Tailwind project that already uses these tokens?
thefrontkit kits ship with a full design token system already wired into Tailwind + shadcn/ui. Generate your palette, paste the @theme block, and every screen rebrands instantly. SaaS, CRM, HR, e-commerce, kanban, and more.
Frequently Asked Questions
Common questions about generating, exporting, and applying Tailwind color scales.
A Tailwind palette generator turns one base color into a full 50-950 shade scale that matches Tailwind CSS conventions (50 is the lightest tint, 950 is the darkest shade). Instead of hand-tuning 11 hex values, you pick a brand color and copy the generated scale straight into your tailwind.config.js (Tailwind v3) or your @theme block (Tailwind v4).
The base color is converted to HSL. The hue is preserved across all 11 shades. Lightness walks through 11 calibrated targets (97, 93, 86, 77, 63, 50, 40, 33, 26, 20, 12). Saturation follows a gentle curve, full at the mid-range (400-600) and dialed back at the extremes so the lightest 50 and darkest 950 stay readable rather than washed-out.
Both. The generator produces three exports: a Tailwind v3 `tailwind.config.js` colors block ready to paste into `theme.extend.colors`, a Tailwind v4 `@theme` block with `--color-{name}-{shade}` custom properties, and raw JSON for design tokens or Style Dictionary pipelines.
Yes. shadcn/ui reads colors from CSS variables. Generate your palette here, export the @theme block, and use the 500 or 600 shade as your primary token. For a dedicated shadcn token generator (background, foreground, border, ring, etc.), use our /tools/shadcn-theme-generator instead.
The shade structure (50-950) gives you a wide enough range to pick contrast-safe pairs (e.g., 50 background + 900 text passes AA easily), but no individual pair is guaranteed to pass. For automated contrast verification across an entire palette, run the export through our /tools/color-palette-validator.
No. Color conversion, scale generation, preview, and copy-to-clipboard all run in your browser. Nothing is uploaded or logged.