Tailwind colors

Muted Magenta, 50 to 950

#D946EF 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-muted-magenta-600 and text-muted-magenta-50.

app.css

@import "tailwindcss";

@theme {
  --color-muted-magenta-50: oklch(97.3% 0.024 325.8);
  --color-muted-magenta-100: oklch(93.4% 0.057 324.2);
  --color-muted-magenta-200: oklch(86.8% 0.115 323.6);
  --color-muted-magenta-300: oklch(77.7% 0.199 322.9);
  --color-muted-magenta-400: oklch(66.7% 0.259 322.1);
  --color-muted-magenta-500: oklch(57.4% 0.262 322.2);
  --color-muted-magenta-600: oklch(49.1% 0.233 321.9);
  --color-muted-magenta-700: oklch(40.6% 0.193 321.8);
  --color-muted-magenta-800: oklch(32.2% 0.153 321.8);
  --color-muted-magenta-900: oklch(24.6% 0.117 321.4);
  --color-muted-magenta-950: oklch(17.2% 0.082 322.3);
}

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 muted-magenta-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-muted-magenta-600 text-muted-magenta-50
Soft button
bg-muted-magenta-100 text-muted-magenta-800
Text
text-muted-magenta-950 / text-muted-magenta-800
Border
border-muted-magenta-200

On muted-magenta-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-muted-magenta-400 text-muted-magenta-950
Soft button
bg-muted-magenta-800 text-muted-magenta-100
Text
text-muted-magenta-50 / text-muted-magenta-200
Border
border-muted-magenta-800

Contrast

What reads on what

22 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 muted-magenta text step on each muted-magenta background step
text / bg50100200300400500600700800900950
501.11.42.03.14.66.59.212.415.417.7
1001.11.21.72.74.15.78.010.913.615.6
2001.41.21.42.23.24.66.48.710.812.4
3002.01.71.41.52.33.24.56.17.68.8
4003.12.72.21.51.42.02.83.94.85.6
5004.64.13.22.31.41.41.92.63.33.8
6006.55.74.63.22.01.41.31.82.32.7
7009.28.06.44.52.81.91.31.31.61.9
80012.410.98.76.13.92.61.81.31.21.4
90015.413.610.87.64.83.32.31.61.21.1
95017.715.612.48.85.63.82.71.91.41.1

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

#D946EF is Tailwind's own fuchsia-500. You can use the built-in family as it is.

muted-magenta (this scale)

fuchsia (Tailwind)

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

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.