Tailwind Color Palette Generator
Generate harmonious colors and export them as a complete Tailwind theme — colors namedc1 toc5, ready to drop into tailwind.config.jsor a v4 @theme block.
Export palette
5 colors · pick a format, copy or download
:root {
--color-1: #e7c573;
--color-2: #a8f0f0;
--color-3: #de3fb1;
--color-4: #a5e773;
--color-5: #a8b1f0;
}Why generate palettes for Tailwind specifically
Tailwind makes you name every color before you use it. That's usually the slowest part of the setup: picking colors, agreeing on names, and translating them into the config format. This tool skips that entirely — you roll a palette, press export, and get a config block you can paste without editing a single value.
The export names colors c1through c5 (matching the swatch order), so classes like bg-c1,text-c2 andborder-c3 work immediately. You can rename them in the config later — the point is getting something usable in thirty seconds.
Both Tailwind generations are covered: v3 projects take the Tailwind Config export (theme.extend.colors), and v4 projects take the Tailwind v4 @theme export (--color-c1 CSS variables).
Using the Tailwind export
- Generate a palette you like. Roll, lock colors, and fine-tune with the pipette until the set is right. You can change the count (3–8) with the number buttons above the swatches.
- Pick the right export. In the Export panel choose Tailwind Config for Tailwind v3 or Tailwind v4 @theme for v4 projects. The preview shows the exact output, syntax-highlighted.
- Copy or download. The copy button puts the code on your clipboard; download saves it as
tailwind.config.jsortheme.css. - Paste it in. For v3, merge the
theme.extend.colorsblock into your config. For v4, paste the@themeblock into your CSS file (or@importit). - Use the classes.
bg-c1…bg-c5are available across all utilities: text, border, ring, gradient stops, and so on.
Building a Tailwind theme from a palette
A bare Tailwind project has no brand colors — the default palette is the utility framework's own. A real theme replaces part of it with colors that match your product. The export here gives you the colors; the rest of the theme (spacing, radius, typography) is your existing setup.
A practical v4 theme split looks like this: the darkest swatch becomes text and heading color, thelightest becomes the background, and the two or three mid tones become surfaces, borders and the primary accent. If your project has dark mode, generate two palettes — one for each scheme — and name the exports accordingly, or keep one palette and rely on opacity modifiers for dark surfaces.
One caveat: utility frameworks encourage using colors everywhere, and too many distinct colors in a UI is a design smell. Limit your theme to the exported set — every color in the config should have a job, or it will find one eventually and that job is usually "inconsistent spacing."
Tips for Tailwind palettes
- Export the CSS Variables format instead if your project isn't Tailwind but uses CSS anyway — the same colors work everywhere.
- Keep swatch order stable: since names are positional (c1–c5), swapping colors changes what every class means.
- For dark mode, generate a second palette and lock the lightness values low (pipette them lighter/darker manually).
- Test accent colors with a real button: text color, background, and hover state all come from the same palette.
- Rename c1–c5 in the config to semantic names (primary, accent, surface) once the design stabilizes — your future self will thank you.
Frequently asked questions
How do I add these colors to Tailwind v3?
Use the Tailwind Config export, then paste the colors object into theme.extend.colors in tailwind.config.js. After that, bg-c1 and friends work across all utilities.
What about Tailwind v4?
v4 dropped config-file colors in favor of CSS variables. Use the Tailwind v4 @theme export and paste the @theme block into your main CSS. The generated --color-c1 variables become utilities automatically.
Why are the colors named c1, c2, c3…?
Positional names keep the export simple and match the swatch order on screen. Rename them to semantic names (primary, accent, surface) in the config when your design stabilizes — the classes in your markup will keep working.
Does the export work with dark mode?
The export is a plain palette — it doesn't know about your dark mode setup. Generate one palette per scheme, or use one palette with Tailwind's opacity modifiers (bg-c1/10) for dark surfaces.
Can I use these colors outside Tailwind too?
Yes. Every export is standard CSS or JS — the CSS Variables, JSON, SCSS and LESS formats work in any project. The Tailwind exports are just the same colors formatted for Tailwind's conventions.
Ship a palette in one session
Roll, lock, export, paste. That's the whole loop — no hex copy-paste errors, no config syntax mistakes, no half-finished theme files. If you use Tailwind, this is the fastest path from "no colors" tobg-c1 in your markup.