Tailwind Color Generator
Generate custom Tailwind CSS color palettes from any base color
Configure Your Color
Generated Palette
Tailwind Config
// tailwind.config.js
module.exports = {
theme: {
extend: {
colors: {
'primary': {
50: '#e3eaf4',
100: '#c8dcfc',
200: '#a5c6fb',
300: '#82b0f9',
400: '#5f9af7',
500: '#3c83f6',
600: '#0b64f3',
700: '#0950c1',
800: '#073b8f',
900: '#04275e',
950: '#0a1e3e',
},
},
},
},
}CSS Variables
:root {
--primary-50: #e3eaf4;
--primary-100: #c8dcfc;
--primary-200: #a5c6fb;
--primary-300: #82b0f9;
--primary-400: #5f9af7;
--primary-500: #3c83f6;
--primary-600: #0b64f3;
--primary-700: #0950c1;
--primary-800: #073b8f;
--primary-900: #04275e;
--primary-950: #0a1e3e;
}Related Tools
Lighten Color
Make colors lighter by adjusting their brightness and luminosity
Darken Color
Make colors darker by reducing their brightness and luminosity
CSS Gradient Generator
Create beautiful CSS gradients with advanced controls for linear, radial, and conic gradients. Real-time preview and export options.
Box Shadow Generator
Generate stunning CSS box shadows with live preview, multiple layers, presets, and export options for web design
Color Palette Generator
Generate beautiful color palettes with various color harmony algorithms. Export to CSS, SCSS, Tailwind, JSON and more
Pattern Generator
Create beautiful CSS patterns with stripes, dots, waves, and more. Generate SVG patterns and CSS backgrounds with live preview
What is Tailwind CSS Color Generation?
Tailwind CSS uses a numerical shade system (50-950) to create consistent color palettes. This generator creates a complete 11-shade palette from any base color, matching Tailwind's conventions for use in your projects.
Simply pick a color, name it, and get ready-to-use Tailwind config code and CSS variables. Perfect for creating custom brand colors that integrate seamlessly with Tailwind's utility classes.
Understanding Tailwind Shades
| Shade | Typical Use |
|---|---|
| 50-100 | Backgrounds, hover states |
| 200-300 | Borders, dividers |
| 400-600 | Primary UI, buttons, links |
| 700-950 | Text, dark mode backgrounds |
How to Use
1. Copy the Tailwind Config
Add the generated config to your tailwind.config.js file under theme.extend.colors.
2. Use in Your HTML
bg-primary-500, text-primary-900, border-primary-200
Best Practices
- Use shade 500 as your base: This is the "default" shade in Tailwind's system.
- Semantic naming: Use names like "primary", "accent", "success" instead of "blue".
- Test contrast: Ensure text colors have sufficient contrast against backgrounds.
- Consider dark mode: Test your palette in both light and dark modes.
Frequently Asked Questions
Why use generated palettes?
Consistent shade progressions ensure predictable behavior with hover states, borders, and text. Hand-picking each shade is error-prone.
Can I fine-tune individual shades?
Yes! Use this generator as a starting point, then manually adjust specific shades in your config.
