Look up any color in the default Tailwind CSS palette. Pick a family and a shade, or type a class such as blue-500, and the reference shows the HEX, RGB and HSL values, the utility class to use and the text color that reads best on top. You can also enter any HEX code to find the closest Tailwind color, which is handy when you match a design to Tailwind. Everything runs in your browser, and nothing you enter is sent to a server.

Tailwind gives every color a name and a number. Once you know the scale, you can pick a color by its job instead of by its HEX code.

How to use the Tailwind color reference

  • Search by class: type a name such as blue-500 or bg-rose-600, or just a family name such as teal.
  • Find the closest color: type a HEX code, or click the swatch to pick a color, and the tool picks the nearest Tailwind color.
  • Choose a family and shade: use the lists, or click a family and a shade in the browser at the bottom.
  • Pick the utility: choose bg, text, border, ring or another prefix to get the full class name.
  • Copy a value: click any row in the results to copy it.
  • Copy a family: press Copy family to copy all 11 shades as a config object for tailwind.config.js.
  • Pick from your screen: in browsers that support it, such as Chrome and Edge, press Pick from screen and click any pixel.

How the Tailwind shade scale works

Each of the 22 color families has 11 shades, from 50 (very light) to 950 (very dark). A higher number is a darker color. The table shows what each part of the scale is usually used for.

ShadesRangeTypical use
Lightest50 to 100Page and section backgrounds, soft highlights
Light200 to 300Borders, dividers, badges and hover backgrounds
Mid400 to 500Icons, accents, buttons and charts
Strong600 to 700Button hover states, links and text on light backgrounds
Darkest800 to 950Headings, body text and dark mode backgrounds

How the closest color is found

When you enter a HEX code, the tool compares it with all 242 Tailwind colors in the CIE Lab color space, which is built to match how people see differences between colors. The color with the smallest distance wins. The distance is shown as a Delta E value, where 0 is an exact match and a value under about 2.3 is hard to notice.

What this tool does and does not do

The reference lists the 22 color families of the default Tailwind CSS palette, with the HEX values used by Tailwind 3. Tailwind 4 defines the same palette in the OKLCH color space, so its values look the same on screen but are written differently, and the CSS variable row (--color-blue-500) is the name Tailwind 4 uses. The tool does not read your own tailwind.config.js, custom colors or plugins, and it does not include black, white or transparent. Screens also differ, so a color can look slightly different on another display.

Tips for using Tailwind colors

  • Stay in one family for accents: use one main family and one gray family, and use different shades of each for depth.
  • Check contrast: a shade of 500 or lighter often fails WCAG as text on white, so use the best text color shown for each shade.
  • Pick a gray that fits: slate, gray, zinc, neutral and stone are all grays, with a slight blue, plain, cool, pure or warm tint.
  • Use the scale for states: a common pattern is 500 for the default, 600 for hover and 700 for pressed.
  • Match a design: enter the HEX code from a mockup to see the nearest Tailwind color, then check the Delta E to decide if you need a custom color.
Find the shade, copy the class and keep building. The scale gives you a consistent color system before you write any custom CSS.

Common Tailwind color problems

  • The class does not work in my project: check that your Tailwind version includes the color. Shade 950 and some families need Tailwind 3.3 or later.
  • The HEX field will not accept my code: use three or six letters and numbers from 0 to 9 and A to F, such as #3AF or #33AAFF.
  • The closest color does not look right: the palette has 242 colors, so a custom shade between two steps gets the nearer one. Check the neighbors in the shade list.
  • My HEX values are different from my project: your project may use a custom palette or Tailwind 4 values. This tool shows the default palette.
  • Pick from screen is missing: the screen picker needs a browser that supports it, such as a current Chrome or Edge. Use the swatch or type the code instead.
  • My color disappeared: the last color is saved in your browser. Clearing site data or using a private window removes it.

Frequently asked questions

Is this Tailwind color reference free?

Yes. There is no sign-up and no limit on how many colors you look up.

Which Tailwind colors are included?

All 22 families of the default palette: slate, gray, zinc, neutral, stone, red, orange, amber, yellow, lime, green, emerald, teal, cyan, sky, blue, indigo, violet, purple, fuchsia, pink and rose. Each has shades from 50 to 950.

Can I find the Tailwind color closest to my HEX code?

Yes. Type a HEX code or pick a color with the swatch, and the tool selects the nearest Tailwind color and shows how far apart the two are.

What is Delta E?

Delta E is a number for how different two colors look. A value of 0 means the colors are identical, and a value under about 2.3 is hard to notice.

Do the values match Tailwind 4?

The HEX values are from the Tailwind 3 palette. Tailwind 4 writes the same colors in OKLCH, so they look nearly identical, but the numbers in your CSS will differ.

What does Copy family do?

It copies all 11 shades of the selected family as an object you can paste into the colors section of tailwind.config.js.

Are my colors sent anywhere?

No. All calculations run in your browser, and the last color you used is saved only on this device.

Share this article