Tools

Home
JSON FormatterSQL FormatterJS ValidatorMinify CSS
Merge PDFCompress PDFImage to PDF
JPG to PNGPNG to WebPCrop Image

Tailwind CSS Colors Reference

Complete color palette with all shades. Click any swatch to copy hex, RGB, HSL, or Tailwind class.

Your files never leave your browser
Filter:
Copy as:

Find Nearest Tailwind Color

Browse all 22 Tailwind CSS color families with every shade from 50 to 950 — click any swatch to copy the hex, RGB, HSL, or class name. Paste a custom hex into the nearest-match finder and get the closest Tailwind equivalent in one click. And everything runs in your browser. Nothing gets uploaded.

How It Works

Browse or Search Colors
→
Click a Swatch
→
Copy HEX / RGB / HSL / Class

The full Tailwind CSS v3 palette is rendered as clickable swatches organized by color family. Type a color name, hex value, or Tailwind class in the search bar to filter results. The "Copy as" dropdown switches between HEX, RGB, HSL, and Tailwind class formats. The nearest-match tool calculates color distance using the CIEDE2000 algorithm — paste any hex code and it finds the Tailwind shade with the smallest perceptual difference.

Examples

Grabbing a Button Color

You need the exact blue for a primary button and want the Tailwind class plus the hex value for your design file.

INPUT
Search: "blue-600"
OUTPUT
HEX: #2563eb RGB: rgb(37, 99, 235) Class: bg-blue-600

Matching a Brand Color to Tailwind

Your brand uses #1DB954 (Spotify green). You want to know which Tailwind shade comes closest so you can keep the rest of your palette consistent.

INPUT
Find Nearest: #1DB954
OUTPUT
Nearest: green-500 (#22c55e) Distance: 3.2

Copying All Shades of a Color Family for a Design System

You are documenting your project's color tokens and need every shade of indigo with both hex and HSL values for the design system spec.

INPUT
Search: "indigo" Copy as: HSL
OUTPUT
indigo-50: hsl(226, 100%, 97%) indigo-100: hsl(226, 100%, 94%) indigo-200: hsl(228, 96%, 89%) ... indigo-900: hsl(244, 47%, 20%) indigo-950: hsl(244, 47%, 12%)

Who Uses This

👨‍💻 Front-End Developers

Quick-copying color values while coding Tailwind components without switching tabs to the docs.

🎨 UI Designers

Pulling hex values into Figma or Sketch to keep mockups perfectly aligned with what Tailwind actually renders.

📱 Full-Stack Engineers

Finding the closest Tailwind match for brand colors handed over by marketing or a client.

📝 Technical Writers

Referencing exact color tokens when writing design system documentation or style guides.

Common Mistakes

Confusing gray families

Tailwind has five gray-ish families — slate, gray, zinc, neutral, and stone. They look almost identical at shade 500, but diverge hard at the light and dark ends. Slate has a blue undertone, stone leans warm. Pick one family and stick with it across your project, or things will feel visually "off" in dark mode.

Using shade 500 for everything

It is tempting to just pick color-500 every time. But 500 is the "middle of the road" shade — it's often too bright for backgrounds and too dark for subtle accents. Lighter shades (50–200) work better for backgrounds, and darker ones (700–900) are easier to read as text on white.

Copying hex instead of the class name

If you're working in a Tailwind project, pasting a raw hex value defeats the purpose. You lose dark mode support, responsive utilities, and consistency. Switch the "Copy as" dropdown to Tailwind class and grab bg-blue-600 instead of #2563eb.

Technical Details

Frequently Asked Questions

How many colors does Tailwind CSS have?

Tailwind ships with 22 color families, each containing 11 shades (50 through 950). That's 242 pre-defined colors total. On top of those, there's black, white, and transparent — so 245 named color values if you count everything.

What is the difference between Tailwind's gray, slate, zinc, neutral, and stone?

They differ in undertone. Slate has a cool blue tint. Gray is slightly cooler than neutral. Zinc sits between gray and neutral. Neutral is a true gray with no color tint. Stone has a warm, slightly brownish undertone. The difference is most visible in the lighter shades (50–200) and in dark mode backgrounds.

Can I use Tailwind colors without using Tailwind CSS?

Absolutely. The colors are just well-chosen hex values. Copy the HEX or RGB value from this page and use it in plain CSS, Sass, a design tool, or any other framework. You don't need Tailwind installed — the palette works as a standalone color system.

How do I find the closest Tailwind color for a specific hex value?

Use the "Find Nearest Tailwind Color" section on this page. Enter or paste any hex code and it will calculate the closest match using perceptual color distance. The lower the distance number, the closer the match. A distance under 5 usually means it's visually indistinguishable.

Are Tailwind CSS colors accessible?

The palette itself doesn't guarantee accessibility — that depends on how you pair colors. Generally, shades 600+ on white backgrounds meet WCAG AA contrast. For text, avoid anything lighter than shade 500 on white. Our Color Contrast Checker tool can verify specific pairings if you're unsure.

Share: