Tailwind color generator
Pick a base color and generate a full Tailwind CSS shade scale from 50 to 950. Click any swatch to copy its hex value. Export as a ready-to-paste Tailwind config.
// tailwind.config.js
module.exports = {
theme: {
extend: {
colors: {
primary: {
50: '#f3f6fc',
100: '#e0eafa',
200: '#bed4f8',
300: '#8db5f7',
400: '#4f8ff7',
500: '#3b82f6',
600: '#044ec8',
700: '#033fa0',
800: '#053075',
900: '#062251',
950: '#05152e',
},
},
},
},
}What is Tailwind Color Generator?
A Tailwind color generator takes a single base color and computes the full 11-shade scale that Tailwind CSS expects: 50, 100, 200, 300, 400, 500, 600, 700, 800, 900, and 950. Tailwind ships with carefully crafted default palettes, but custom brand colors need the same shade distribution to work correctly with utility classes like bg-primary-100, text-primary-700, and ring-primary-500. Manually picking 11 harmonious shades is tedious and error-prone. This tool uses HSL-based interpolation to generate lighter tints for the low shades and darker tones for the high shades, keeping hue consistent and adjusting saturation naturally so the entire scale looks cohesive. The base color becomes shade 500 (the midpoint), lighter shades are generated by increasing lightness and slightly reducing saturation, and darker shades decrease lightness while maintaining richness. You get a visual grid of all 11 swatches with hex values, click any swatch to copy it, and export the complete colors configuration ready to paste into tailwind.config.js. All computation runs in your browser with no server calls.
How to Use Tailwind Color Generator
- 1
Pick your base color
Use the color picker or type a hex code directly. The base color becomes shade 500 in the generated scale. You can also click one of the 8 starter colors to begin from a popular palette.
- 2
Review the shade scale
All 11 shades from 50 (lightest) to 950 (darkest) are displayed in a visual grid. Each swatch shows its shade number and hex value. Click any swatch to copy its hex code to your clipboard.
- 3
Export the Tailwind config
Set the variable name (default: primary) and click Copy Config to get a complete tailwind.config.js snippet. Paste it into your theme.extend.colors section and all Tailwind utilities will use your custom palette.
Features
- Generates all 11 Tailwind shades: 50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950
- HSL-based algorithm that preserves hue and adjusts saturation naturally
- Visual color picker with hex text input for precise control
- 8 popular starter colors to begin from established palettes
- Click any swatch to instantly copy its hex value
- Exports ready-to-paste tailwind.config.js colors object
Related Tools
CSS Gradient Generator
Create beautiful linear, radial and conic CSS gradients with live preview. Copy CSS or Tailwind code.
CSS Box Shadow Generator
Build layered box shadows visually with offset, blur, spread and color controls. Copy CSS instantly.
CSS Border Radius Generator
Design custom border-radius shapes with independent corner controls and live preview.
CSS Flexbox Generator
Visual flexbox layout builder. Configure direction, wrap, alignment and gap with live preview.
CSS Grid Generator
Visual CSS grid builder with rows, columns, gap and named areas. Copy CSS and HTML code.
CSS Text Shadow Generator
Create beautiful text shadows with offset, blur and color. Multiple layers and live preview.