Tailwind CSS Color Palette Visualizer
A complete, searchable reference for the default Tailwind CSS color palette. Click to copy class names or hex codes instantly.
Understanding the Tailwind Color System
Tailwind CSS comes with a expertly crafted, comprehensive color palette out of the box. This palette is not just a random collection of colors; it's a carefully designed system that makes building beautiful, consistent user interfaces easier and more intuitive.
The Power of Shades:
Each color in the palette (like Blue, Green, Red) comes in a range of 10 shades, from 50 (lightest) to 900 (darkest). This numeric scale provides a predictable and consistent way to choose colors for different UI states and elements.
- Light Shades (50-300): Excellent for backgrounds, borders, and subtle highlights.
- Mid Tones (400-600): Often used as the primary shade for buttons, links, and other interactive elements. The
500shade is typically considered the "base" color. - Dark Shades (700-900): Perfect for text, icons, and dark mode backgrounds. They provide strong contrast and readability.
This visualizer makes it easy to see all these shades at a glance and find the perfect one for your needs. The search bar lets you filter not just by color name (e.g., "sky") but also by a specific shade (e.g., "rose-300").
Customizing Your Palette
While Tailwind's default palette is extensive, most projects will need to customize it to match their brand identity. You can do this in your tailwind.config.js file.
Extending the Default Palette:
If you want to add new colors without removing the defaults, use the `extend` key in your config. This is the most common and recommended approach.
// tailwind.config.js
module.exports = {
theme: {
extend: {
colors: {
'custom-brand': '#FFC107',
'tahiti': {
100: '#cffafe',
200: '#a5f3fc',
// ...and so on
},
},
},
},
plugins: [],
}Overriding the Default Palette:
If you want to completely replace the default color palette with your own, define your colors directly under `theme.colors`.
// tailwind.config.js
module.exports = {
theme: {
colors: {
'primary': '#3490dc',
'secondary': '#ffed4a',
//...
},
},
}Note: This visualizer only shows the default Tailwind palette. Your custom colors will not appear here.
Frequently Asked Questions (FAQ)
How are the color names decided?
The color names in Tailwind (e.g., "Slate", "Sky", "Amber", "Rose") are based on real-world color names to be more intuitive and memorable than abstract names like "Brand Primary".
Can I use these colors in my CSS file?
Yes, you can use the `theme()` function in your CSS to access your configured Tailwind colors. This is useful for properties where you can't use a utility class. For example: .my-class { background-color: theme('colors.blue.500'); }
What if I need a color that isn't in the palette?
You can use Tailwind's arbitrary value syntax to use a one-off color directly in your HTML without adding it to your theme. For example: <div className="bg-[#FFC0CB]"></div>. However, if you find yourself using a color frequently, it's best to add it to your `tailwind.config.js`.