Generate a 50 to 950 scale from your color
Your color lands on the stop whose lightness is closest to it, or on the stop you choose. The other stops follow the lightness and saturation curve of the default Tailwind palette, worked out in OKLCH.
More formats: CSS variables, SCSS, JSON, SVG, PNG, ASE, PDF
:root {
--brand-50: #F3F8FF;
--brand-100: #E5EFFF;
--brand-200: #CCE1FF;
--brand-300: #A9CCFF;
--brand-400: #7CB1FF;
--brand-500: #4D96FF;
--brand-600: #1877F2;
--brand-700: #0A60CA;
--brand-800: #0D4FA4;
--brand-900: #104387;
--brand-950: #062654;
}Click any swatch to copy it in the chosen format, or click a hue name to copy the whole row. Class names follow bg-{hue}-{shade}. These are the Tailwind v3 HEX values; Tailwind v4 defines the default palette in OKLCH, so v4 colors can look slightly different.
How to use
Generate your scale
Enter your color in Base color, give it a Name, and leave Put my color at on Closest match or choose a stop such as 500. Random and Pick from screen give quick starting points.
Copy the config
Press Copy Tailwind v4 @theme, the OKLCH version, or Copy Tailwind v3 config. The export panel adds CSS variables, SCSS, JSON and file downloads, and Copy share link saves the setup.
Browse or match the default palette
Pick a copy format, then click any swatch in the default grid, or click a hue name to copy the whole row. The finder at the top returns the three closest default colors for any HEX.
Why Tailwind Color Palette
- Generates a 50 to 950 scale from any HEX color.
- Tailwind v4 @theme (HEX or OKLCH) and v3 config export.
- All 22 default colors, copy as HEX, class, RGB or OKLCH.
- Finds the closest default class for any HEX.
Adding custom colors in Tailwind v4 vs v3
Tailwind v4 moved configuration into CSS. You declare theme values with the @theme directive in your stylesheet, and every --color-* variable becomes a set of color utilities. Tailwind v3 used a JavaScript config file, where custom colors live under theme.extend.colors.
Either way, keep the default palette available by extending it rather than replacing it, and follow the same 50 to 950 naming so your custom colors behave like the built-in ones. If you only need to match a design to the defaults, the finder on this page gives you the nearest class name so you can skip custom colors altogether.
| Version | Where colors go | Example |
|---|---|---|
| Tailwind v4 | @theme block in your CSS | @theme { --color-brand-500: #6366F1; } |
| Tailwind v3 | theme.extend.colors in tailwind.config.js | colors: { brand: { 500: '#6366F1' } } |
| Both | Use in markup | bg-brand-500, text-brand-500, border-brand-500 |