agyanadda@gmail.com

Tailwind Colors

Typography and Colors 1 min read Updated Dec 1, 2026 Topic 7 of 27

Tailwind includes a large, carefully designed colour palette.

Colour names

slate, gray, zinc, red, orange, amber, yellow, lime, green, emerald, teal, cyan, sky, blue, indigo, violet, purple, pink, rose, plus black and white.

Shades

50, 100, 200 … 900, 950 — light to dark.

Where colours are used

Utility Example
text text-rose-600
background bg-emerald-100
border border-sky-400
ring / outline ring-indigo-500
shadow shadow-blue-500/50
SVG fill-amber-400

Opacity modifier

Add / and a number: bg-black/50 (50% black), text-white/80.

Good contrast tip

Pair light backgrounds with dark text of the same colour: bg-green-100 text-green-800.

Example

Example — Colour palette and opacity HTML
<script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>

<div class="p-6 space-y-4">
  <div class="flex">
    <div class="h-12 flex-1 bg-sky-50"></div><div class="h-12 flex-1 bg-sky-100"></div><div class="h-12 flex-1 bg-sky-200"></div><div class="h-12 flex-1 bg-sky-300"></div><div class="h-12 flex-1 bg-sky-400"></div><div class="h-12 flex-1 bg-sky-500"></div><div class="h-12 flex-1 bg-sky-600"></div><div class="h-12 flex-1 bg-sky-700"></div><div class="h-12 flex-1 bg-sky-800"></div><div class="h-12 flex-1 bg-sky-900"></div>
  </div>
  <div class="bg-green-100 text-green-800 border border-green-300 rounded-lg p-3">Success: payment received.</div>
  <div class="bg-rose-100 text-rose-800 border border-rose-300 rounded-lg p-3">Error: please try again.</div>
  <div class="relative h-40 rounded-xl overflow-hidden bg-[url(https://picsum.photos/id/1018/800/300)] bg-cover bg-center">
    <div class="absolute inset-0 bg-black/50 flex items-center justify-center">
      <p class="text-white/90 text-xl font-semibold">bg-black/50 overlay</p>
    </div>
  </div>
</div>

Test Yourself With Exercises

Exercise 1 Multiple Choice

What does bg-black/50 mean?

Exercise 2 True / False

The shade 950 is the lightest.

Exercise 3 Fill in the Blank

Use ___-rose-600 to make text rose coloured.

Frequently Asked Questions

In v4, add it in CSS: @theme { --color-brand: #1f386b; } — then bg-brand, text-brand and border-brand all work.