# Tailwind CSS Colors — card for AI agents

The default Tailwind CSS color palette: 26 hues in 11 shades each (including taupe, mauve, mist and olive in tailwindcss 4.3.5), defined as OKLCH CSS variables in the MIT-licensed framework.

Category: Color palettes and gradients · maker Tailwind Labs · checked 2026-11-09

## Price
- Price: Free
- Free tier: Whole palette free; it ships with the tailwindcss package.

## License
MIT — https://github.com/tailwindlabs/tailwindcss/blob/main/LICENSE

- commercial: **yes** (Commercial use OK)
  > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software
  (https://github.com/tailwindlabs/tailwindcss/blob/main/LICENSE)
- attribution: **no** (No credit needed)
  > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
  (https://github.com/tailwindlabs/tailwindcss/blob/main/LICENSE)
- in app: **yes** (Can ship inside your app)
  > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software
  (https://github.com/tailwindlabs/tailwindcss/blob/main/LICENSE)

## Rules to follow
- Keep the MIT copyright notice if you copy the theme.css file itself.
- Do not use the Tailwind name or logo to imply endorsement (see the Tailwind trademark policy).

## Can an AI agent use it by itself?
**Yes** · package: Agent installs a package or loads it from a CDN

## How to connect
- Package (npm/PyPI)
- npm: `npm install tailwindcss`
- Repository: https://github.com/tailwindlabs/tailwindcss
- Website: https://tailwindcss.com/docs/colors

## Notes
Values live in packages/tailwindcss/theme.css (tailwindcss 4.3.5 on npm, MIT). No credit needed for using the color values in a design; the MIT notice applies when copying the source file.

## Numbers (AgentGid data)
- Gid Score: 89
- GitHub stars: 98,647
- Downloads last week: 187,514,210
- Used in 1,930 public projects set up for AI coding agents

## Lines to paste into your prompt or AGENTS.md

```
- Tailwind CSS Colors (Color palettes and gradients). The default Tailwind CSS color palette: 26 hues in 11 shades each (including taupe, mauve, mist and olive in tailwindcss 4.3.5), defined as OKLCH CSS variables in the MIT-licensed framework. Price: free; commercial use OK; no credit needed.
  Connect: npm tailwindcss.
  Rule: Keep the MIT copyright notice if you copy the theme.css file itself.
  Rule: Do not use the Tailwind name or logo to imply endorsement (see the Tailwind trademark policy).
  License: https://github.com/tailwindlabs/tailwindcss/blob/main/LICENSE (checked 2026-11-09; details: https://agentgid.com/assets/tailwind-css-colors/)
```

## Links
- AgentGid page: https://agentgid.com/assets/tailwind-css-colors/
- Is it free for commercial use? https://agentgid.com/assets/tailwind-css-colors/commercial-use/
- Source: https://tailwindcss.com/docs/colors
- Source: https://github.com/tailwindlabs/tailwindcss/blob/main/LICENSE
- Source: https://github.com/tailwindlabs/tailwindcss/blob/main/packages/tailwindcss/theme.css


## Tailwind CSS Colors: a ready color palette for sites

Tailwind CSS Colors is the free set of colors that comes with Tailwind CSS, a popular toolkit for styling websites. It has 26 color families, from red and blue to several grays, each in 11 shades from very light (50) to very dark (950). You or your AI assistant pick a color by name, like sky-500, so buttons, labels and dark mode match without a designer.

### Where to use it
- Status labels in an app: Give each state its own color family: green for done, amber for waiting, rose for blocked. A light shade for the background and a dark one for the text keeps the label readable.
- A dark version of the page: Write a second color for dark mode next to the first one, like a white card that turns dark gray. The page switches when the visitor's system is in dark mode.
- Your brand color next to the defaults: Add your own brand colors under a name like midnight, and they work everywhere the built-in colors do.
- Matching colors in your own styles: The same colors are also named values you can use in your own style rules, for example a link color in an article. Everything stays in one palette.
- The palette on a page without Tailwind: Copy the color values into a plain page or an email template that does not use Tailwind. Keep the license notice with the copied file. (idea, not from the official pages)
- Colors for charts and dashboards: Give each line or bar in a chart its own family at the same shade, like blue-500, emerald-500 and amber-500. They look equally strong and easy to tell apart. (idea, not from the official pages)

### How to start
- In a Vite project, install Tailwind and its Vite plugin (the docs also cover other setups and a quick in-browser trial).

```
npm install tailwindcss @tailwindcss/vite
```

- Import Tailwind in your main style file; the whole color palette comes with it.

```
@import "tailwindcss";
```

- Use a color name and a shade in a class, such as bg-sky-500 for a background or text-gray-950 for text.

```
<div class="bg-sky-500 text-white">Hello</div>
```


### License
Free for personal and paid products under the MIT license, with no visible credit needed. If you copy the file with the color values, keep its short license notice; do not use the Tailwind name or logo as if your product were official.

### Good to know
- The colors are written in a modern color format (OKLCH). The docs page copies the nearest hex value on shift+click, so a hex code is close, not exact.
- The current Tailwind (version 4) works in Safari 16.4, Chrome 111 and Firefox 128 or newer. For older browsers the docs advise staying on version 3.4.
- Tailwind only makes the color classes it finds written out in full in your files. A class glued together from pieces, like bg- plus a color name, gets no color.
- The quick in-browser setup is for trying things only, not for a live site.
- Color families you do not use can be switched off, which removes them from your final style file.

Checked 2026-11-09 against: https://tailwindcss.com/docs/colors, https://tailwindcss.com/docs/theme, https://tailwindcss.com/docs/dark-mode, https://tailwindcss.com/docs/compatibility, https://tailwindcss.com/docs/upgrade-guide, https://tailwindcss.com/docs/detecting-classes-in-source-files, https://tailwindcss.com/docs/installation/using-vite, https://tailwindcss.com/docs/installation/play-cdn, https://tailwindcss.com/brand, https://github.com/tailwindlabs/tailwindcss/blob/main/LICENSE, https://github.com/tailwindlabs/tailwindcss/blob/main/README.md, https://github.com/tailwindlabs/tailwindcss/blob/main/packages/tailwindcss/theme.css, https://registry.npmjs.org/tailwindcss/latest

### Mistakes to avoid
- Don't: className={`bg-${color}-600 hover:bg-${color}-500`} → Do: Map each prop to full class names: const colorVariants = { blue: "bg-blue-600 hover:bg-blue-500", red: "bg-red-600 hover:bg-red-500" } (Tailwind reads files as plain text, so classes glued together at run time are never generated and the color is missing.)
- Don't: Add colors under theme.extend.colors in tailwind.config.js (the v3 way) and expect v4 to read it → Do: Define them in CSS with @theme { --color-brand-500: ... }, or load the old file explicitly with @config (Version 4 no longer finds a JavaScript config file on its own.)
- Don't: Put new color variables in :root or inside a media query and expect bg-brand-500 to exist → Do: Use a top-level @theme block for colors that need classes; keep :root for plain variables (Only theme variables create classes, and they must be at the top level.)
- Don't: Ship the Play CDN script tag on a live site → Do: Install tailwindcss with the Vite plugin, the PostCSS plugin or the Tailwind CLI so a static style file is built (The Play CDN is for trying things in the browser only.)
- Don't: Treat the hex code copied from the docs as the exact color → Do: Use the OKLCH value (or var(--color-sky-500)) when the exact color matters; hex is the nearest match (The palette is defined in OKLCH and the docs copy only the nearest hex.)

### Questions
- Can I use the Tailwind colors in a paid product or a client site? Yes. Tailwind CSS is under the MIT license, which allows using, copying and selling copies; keep the license notice if you copy the file itself.
- How many shades does each color have? Eleven, numbered 50, 100, 200 and so on up to 900 and 950; 50 is the lightest and 950 the darkest.
- Can I change a built-in color or add my own? Yes. Define a color with the same name to replace a default one, or a new name to add one; both go in the @theme block of your style file.
- Where do I get hex codes? On the colors page of the docs, shift+click a swatch to copy the nearest hex value; the original values are OKLCH.
- Can I make a color see-through? Yes. Add a slash and a number to the class, like bg-black/75 for 75 percent.

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
