Tailwind CSS Color Palette
Every Tailwind CSS default colour from 50 to 950 with hex, RGB and OKLCH, click to copy as a hex, class or variable, plus a finder that tells you the closest Tailwind class for any colour.
How to Use
- Choose Browse to see the whole palette, or Find closest to enter any colour and get the nearest Tailwind classes.
- Pick what a click copies: hex, a bg- or text- class, the colour name, rgb(), oklch() or the CSS variable.
- Click any swatch to copy it. The details card shows its values and whether white or black text reads better on it.
- In Browse, filter to one colour family to compare its shades.
Worked Example
A mockup uses #3B82F6 for buttons and #FF6B35 for highlights. Which Tailwind classes match?
Each colour is compared with all 242 palette colours using CIEDE2000. #3B82F6 matches blue-500 exactly (ΔE 0), so the designer used Tailwind’s blue: write bg-blue-500.
#FF6B35 has no exact match. Its nearest is orange-500 (#F97316) at ΔE 6.6 — related but visibly different, so it was a custom brand colour. Either accept bg-orange-500, or add the exact colour to theme.extend.colors and keep the brand precise.
Show Work
Formulas
Tailwind’s Palette
Tailwind CSS, released by Adam Wathan in 2017, shipped with a hand-tuned colour palette rather than computed scales. Version 2 (2020) expanded it to 22 colours with 50–900 shades, version 3.3 (2023) added 950 for very dark backgrounds, and the five greys — slate, gray, zinc, neutral and stone — let designers pick an undertone.
Version 4 (2025) redefined the palette in OKLCH so that equal steps look equal across hues and colours can be more vivid on wide-gamut screens. Because so many interfaces use the v3 hex values, they remain the most recognisable “Tailwind colours” on the web.
About This Tool
This tool shows Tailwind CSS 3’s 242 default colours with their hex, RGB, HSL and OKLCH values and WCAG contrast against white and black text. A click copies the colour as a hex value, a bg- or text- class, the name, rgb(), oklch() or a CSS variable, and the finder ranks the five closest Tailwind colours to any colour you enter.
Everything runs in your browser.
Related tools: CSS Variables Generator, CSS Color Names, and Contrast Checker.
Frequently Asked Questions
Which Tailwind version are these colours from?
Tailwind CSS 3.x, whose default palette uses these hex values: 22 colours with 11 shades each (50, 100–900 and 950), 242 in all. Tailwind 4 redefined the same names in OKLCH with slightly more vivid values, so a v4 blue-500 is close to, but not exactly, #3B82F6.
What do the numbers 50 to 950 mean?
Lightness steps, like font weights: 50 is the lightest tint, 500 the main colour, 950 the darkest shade. The same number has a similar lightness in every colour, so blue-600 and red-600 can be swapped and keep the same contrast with white text.
How do I find the Tailwind class for a colour from a design?
Use Find closest and paste the colour. If it shows ΔE under about 1, the design simply used that Tailwind colour. If the nearest is several units away, the designer chose a custom colour: either accept the nearest class or add the exact colour to your theme.extend.colors.
What is the difference between slate, gray, zinc, neutral and stone?
They are five greys with different undertones: slate is cool and bluish, gray slightly cool, zinc nearly neutral with a hint of blue, neutral pure grey, and stone warm and slightly brown. Pick one and use it for all neutral surfaces and text.
Which shade should I use for text and buttons?
On white, shades 600 and darker reach WCAG AA contrast (4.5:1) for normal text in most colours, but light colours such as yellow and amber need 700 or 800. The details card shows the exact ratio for each shade.
How do I use the Tailwind CSS Color Palette?
Simply type your numbers and read the result, which refreshes the instant you change something. There is nothing to submit and nothing to wait for.
Is it free? Does it work without internet?
Yes to both. It is free with no sign-up, and once the page has loaded it keeps working even with no internet.
Where does my data go?
Nowhere — every calculation runs on your own device. Nothing you enter is uploaded, logged, or stored.
Common Use Cases
Copying classes
Switch the copy format to bg- and click to paste bg-indigo-600 straight into your markup.
Matching a design
Paste a hex from a mockup and find that #3B82F6 is exactly blue-500 and #FF6B35 is closest to orange-500.
Picking a grey
Filter to the five grey families and compare their undertones shade by shade.
Accessible text
Check which shade of a colour first passes 4.5:1 against white before using it for links or buttons.
Last updated: