Tailwind colors

Sage, 50 to 950

#A0A890 as a Tailwind color scale. Your color is step 400, unchanged; the other ten are spread evenly in lightness around it.

Type a hex code or use the picker. The link in your address bar follows the color, so you can share the scale.

The number under each hex is the contrast of the best text in this scale on that step. Press a step to copy its hex.

Copy it into your project

Tailwind 4 reads colors from @theme in your CSS. Tailwind 3 reads them from the config file. Either way you get classes like bg-sage-600 and text-sage-50.

app.css

@import "tailwindcss";

@theme {
  --color-sage-50: oklch(97.5% 0.026 121.2);
  --color-sage-100: oklch(94.1% 0.028 122.7);
  --color-sage-200: oklch(88.6% 0.029 122.0);
  --color-sage-300: oklch(81.1% 0.033 122.8);
  --color-sage-400: oklch(71.8% 0.035 122.3);
  --color-sage-500: oklch(61.4% 0.035 121.2);
  --color-sage-600: oklch(52.2% 0.036 121.4);
  --color-sage-700: oklch(43.0% 0.034 122.8);
  --color-sage-800: oklch(33.4% 0.029 121.3);
  --color-sage-900: oklch(25.2% 0.026 121.2);
  --color-sage-950: oklch(17.0% 0.023 120.7);
}

As a theme

The scale on a real screen

A strip of swatches says little about how a scale works. Here it is as a card, a field and two buttons, light and dark, with the classes that draw each part.

On sage-50

NewUpdated today

Quarterly report

Revenue is up nine percent on last quarter. Most of the growth came from returning customers. Read the summary

name@example.com
DownloadShare
Button
bg-sage-600 text-sage-50
Soft button
bg-sage-100 text-sage-800
Text
text-sage-950 / text-sage-800
Border
border-sage-200

On sage-950

NewUpdated today

Quarterly report

Revenue is up nine percent on last quarter. Most of the growth came from returning customers. Read the summary

name@example.com
DownloadShare
Button
bg-sage-400 text-sage-950
Soft button
bg-sage-800 text-sage-100
Text
text-sage-50 / text-sage-200
Border
border-sage-800

Contrast

What reads on what

21 of the 55 pairs in this scale reach 4.5 to 1, the WCAG AA line for body text. Read across for a text step, down for a background step.

Contrast ratio of each sage text step on each sage background step
text / bg50100200300400500600700800900950
501.11.31.62.33.45.07.511.114.817.8
1001.11.11.52.03.14.56.810.113.416.1
2001.31.11.21.72.63.85.78.511.313.6
3001.61.51.21.32.03.04.46.68.810.6
4002.32.01.71.31.42.13.24.86.47.7
5003.43.12.62.01.41.42.13.24.25.1
6005.04.53.83.02.11.41.42.22.93.5
7007.56.85.74.43.22.11.41.41.92.3
80011.110.18.56.64.83.22.21.41.31.5
90014.813.411.38.86.44.22.91.91.31.2
95017.816.113.610.67.75.13.52.31.51.2

Filled cells pass AA for body text (7.0 and up is AAA). Outlined cells at 3.0 or more pass for large text and for icons and borders only.

Nearest built-in color

The nearest color in Tailwind's palette is stone-400 (#A8A29E). It is near, but visibly a different color.

See stone-400 as a scale

sage (this scale)

stone (Tailwind)

The dot marks your color on its scale and the nearest step in stone.

Method

How this scale is made

Your color goes on the step whose lightness is nearest its own and is not changed. Many generators move the color to 500 and adjust it to fit, which is how a brand color ends up slightly off in production.

The other steps are spaced evenly in OKLCH lightness, a color space built to match how people see. Each step looks the same distance from the next, which a scale made by mixing with white and black does not manage.

The hue holds from 50 to 950. Color strength eases off toward both ends, where a screen cannot show strong color, so the pale steps stay clean and the dark steps do not go muddy.

Start from Tailwind

Tailwind's own colors, as scales

Each opens the 500 of that family, rebuilt as an even scale, so you can see how it differs from the one Tailwind ships.