Tailwind CSS Color Palette
All Tailwind CSS colors 50–950 as v4 OKLCH and v3 HEX, with @theme and config snippets, plus a generator for a custom 50–950 scale from your brand color.
Tailwind CSS ships a palette of 26 color families, each in 11 steps from 50 (lightest) to 950 (darkest). Version 4 defines them in OKLCH, version 3 in HEX. This tool lists every value in both formats, converts the v4 colors to HEX, and writes ready @theme CSS or tailwind.config.js snippets. In custom mode it builds a full 50–950 scale from your brand color, modeled on the Tailwind family nearest in hue.
How to use this tool
- Choose "Default Tailwind palette" and a family (or all), or "Custom scale from my color".
- Pick Tailwind v4 or v3 for the snippet format.
- For a custom scale, enter your color and a name such as brand.
- Copy the snippet into your CSS (v4) or config (v3) and use classes like bg-brand-500.
Formula
Custom scale: the base keeps its exact value at the step with the closest lightness; lighter steps use L = 1 − (1 − Lᵢ)(1 − L_b)/(1 − L_k), darker steps L = Lᵢ · L_b/L_k, and chroma C = C_b · Cᵢ/C_k, where Lᵢ, Cᵢ come from the model family.
L_b, C_b are your color's OKLCH lightness and chroma, L_k, C_k the model family's values at that step. Hue follows the model family's small drift between steps. Colors outside sRGB have their chroma reduced.
Example
Blue-500 is oklch(62.3% 0.214 259.815) in v4 and #3b82f6 in v3. Entering #3B82F6 in custom mode places it at step 500 of a blue-modeled ramp, so --color-brand-500 is exactly #3b82f6 and the other ten steps get lighter and darker around it.
Frequently asked questions
Why do v4 colors look more vivid than their HEX values?
Many v4 colors use chroma beyond the sRGB range. On Display P3 screens browsers show them as defined; the HEX values here are clipped to sRGB, as an sRGB-only screen would show them.
Can I still use the v3 HEX colors in v4?
Yes. Paste them into @theme as --color-blue-500: #3b82f6; and so on. The v3 and v4 palettes are close but not identical.
Which step should my brand color be?
Whichever its lightness matches — the custom mode decides that for you. Mid-light colors land on 400–500, darker brand colors on 600–700.
Sources
Last updated:
Page address with these inputs: https://kakao.mobile/tools/tailwind-color-palette-tool/
Cite or embed this tool
kakaoCalc. (2026, November 8). Tailwind CSS Color Palette. https://kakao.mobile/tools/tailwind-color-palette-tool/
“Tailwind CSS Color Palette.” kakaoCalc, 8 Nov. 2026, kakao.mobile/tools/tailwind-color-palette-tool/.
Paste this code into your page. The widget runs in your visitors' browsers, shows no ads and keeps a link back to this page. Embedding terms