Tailwind CSS v3.4 color family
Tailwind zinc 11 shades, 50 to 950
Zinc is one of the 22 color families in Tailwind CSS v3.4, with eleven shades from 50 to 950. Its 500 shade, #71717A, is a near-neutral gray, with OKLCH chroma 0.014. Lightness runs from 0.985 at 50 to 0.141 at 950.
- 500 shade
- #71717A
- OKLCH hue at 500
- —
- Body text on white
- 500 to 950
- Body text on black
- 50 to 400
Tailwind CSS 4.3.3
zinc: current colors
11 shades with exact official OKLCH values. Use bg-zinc-500, text-zinc-500 or border-zinc-500 in Tailwind. Wide-gamut colors are preserved; these are not the v3 hex values.
| Color | Exact OKLCH | CSS variable |
|---|---|---|
| zinc-50 | oklch(98.5% 0 none) | --color-zinc-50 |
| zinc-100 | oklch(96.7% 0.001 286.375) | --color-zinc-100 |
| zinc-200 | oklch(92% 0.004 286.32) | --color-zinc-200 |
| zinc-300 | oklch(87.1% 0.006 286.286) | --color-zinc-300 |
| zinc-400 | oklch(70.5% 0.015 286.067) | --color-zinc-400 |
| zinc-500 | oklch(55.2% 0.016 285.938) | --color-zinc-500 |
| zinc-600 | oklch(44.2% 0.017 285.786) | --color-zinc-600 |
| zinc-700 | oklch(37% 0.013 285.805) | --color-zinc-700 |
| zinc-800 | oklch(27.4% 0.006 286.033) | --color-zinc-800 |
| zinc-900 | oklch(21% 0.006 285.885) | --color-zinc-900 |
| zinc-950 | oklch(14.1% 0.005 285.823) | --color-zinc-950 |
Source: Tailwind CSS 4.3.3 theme.css (MIT). Values are pinned to this release. Older v3 reference values below are kept separately for existing projects.
Scale
Every shade, 50 to 950
Each shade has a page of its own. Under each, white and black text on it; a bold figure passes 4.5:1.
Values
Hex, RGB and OKLCH values
The Tailwind CSS v3.4 values, with the contrast of white and black text on each shade.
| Shade | HEX | RGB | OKLCH | White text | Black text |
|---|---|---|---|---|---|
| zinc-50 | #FAFAFA | rgb(250, 250, 250) | oklch(0.985 0.000 0) | 1.04 | 20.11 |
| zinc-100 | #F4F4F5 | rgb(244, 244, 245) | oklch(0.967 0.001 286.4) | 1.09 | 19.10 |
| zinc-200 | #E4E4E7 | rgb(228, 228, 231) | oklch(0.920 0.004 286.3) | 1.26 | 16.55 |
| zinc-300 | #D4D4D8 | rgb(212, 212, 216) | oklch(0.871 0.005 286.3) | 1.47 | 14.20 |
| zinc-400 | #A1A1AA | rgb(161, 161, 170) | oklch(0.712 0.013 286.1) | 2.56 | 8.19 |
| zinc-500 | #71717A | rgb(113, 113, 122) | oklch(0.552 0.014 285.9) | 4.83 | 4.34 |
| zinc-600 | #52525B | rgb(82, 82, 91) | oklch(0.442 0.015 285.8) | 7.72 | 2.71 |
| zinc-700 | #3F3F46 | rgb(63, 63, 70) | oklch(0.370 0.012 285.8) | 10.44 | 2.01 |
| zinc-800 | #27272A | rgb(39, 39, 42) | oklch(0.274 0.005 286.0) | 14.89 | 1.40 |
| zinc-900 | #18181B | rgb(24, 24, 27) | oklch(0.210 0.006 285.9) | 17.71 | 1.18 |
| zinc-950 | #09090B | rgb(9, 9, 11) | oklch(0.141 0.004 285.8) | 19.89 | 1.05 |
Legibility
Which shades pass on each other
Every shade as text on every other shade. 48 of 110 pairings pass 4.5:1 for body text, and 16 more pass 3:1 for large text.
| Text shade, then background shade | 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 950 |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 50 | same shade | 1.05 | 1.21 | 1.41 | 2.45 | 4.63 | 7.40 | 10.00 | 14.27 | 16.97 | 19.06 |
| 100 | 1.05 | same shade | 1.15 | 1.34 | 2.33 | 4.39 | 7.03 | 9.50 | 13.55 | 16.11 | 18.10 |
| 200 | 1.21 | 1.15 | same shade | 1.16 | 2.01 | 3.80 | 6.09 | 8.23 | 11.73 | 13.96 | 15.67 |
| 300 | 1.41 | 1.34 | 1.16 | same shade | 1.73 | 3.26 | 5.22 | 7.06 | 10.07 | 11.98 | 13.46 |
| 400 | 2.45 | 2.33 | 2.01 | 1.73 | same shade | 1.88 | 3.01 | 4.07 | 5.81 | 6.91 | 7.76 |
| 500 | 4.63 | 4.39 | 3.80 | 3.26 | 1.88 | same shade | 1.59 | 2.16 | 3.08 | 3.66 | 4.11 |
| 600 | 7.40 | 7.03 | 6.09 | 5.22 | 3.01 | 1.59 | same shade | 1.35 | 1.92 | 2.29 | 2.57 |
| 700 | 10.00 | 9.50 | 8.23 | 7.06 | 4.07 | 2.16 | 1.35 | same shade | 1.42 | 1.69 | 1.90 |
| 800 | 14.27 | 13.55 | 11.73 | 10.07 | 5.81 | 3.08 | 1.92 | 1.42 | same shade | 1.18 | 1.33 |
| 900 | 16.97 | 16.11 | 13.96 | 11.98 | 6.91 | 3.66 | 2.29 | 1.69 | 1.18 | same shade | 1.12 |
| 950 | 19.06 | 18.10 | 15.67 | 13.46 | 7.76 | 4.11 | 2.57 | 1.90 | 1.33 | 1.12 | same shade |
Rows are the text shade, columns the background. A bold figure on a tinted cell passes 4.5:1 for body text; a plain one passes 3:1 for large text only; a faint one fails.
Color vision
The scale with color blindness
The same eleven shades as seen with each color vision deficiency. Lightness keeps a ramp in order even where its hue collapses.
Simulated with Machado et al. (2009) at full severity, in linear light.
What each type seesTypical vision
Closest neighbors: 50 and 100, ΔE2000 1.3
Protanopia
Closest neighbors: 50 and 100, ΔE2000 1.3
Deuteranopia
Closest neighbors: 50 and 100, ΔE2000 1.3
Tritanopia
Closest neighbors: 50 and 100, ΔE2000 1.2
Achromatopsia
Closest neighbors: 50 and 100, ΔE2000 1.2
Code
Design tokens
The whole family in six formats, ready to paste.
:root {
--color-zinc-50: #fafafa;
--color-zinc-100: #f4f4f5;
--color-zinc-200: #e4e4e7;
--color-zinc-300: #d4d4d8;
--color-zinc-400: #a1a1aa;
--color-zinc-500: #71717a;
--color-zinc-600: #52525b;
--color-zinc-700: #3f3f46;
--color-zinc-800: #27272a;
--color-zinc-900: #18181b;
--color-zinc-950: #09090b;
}
// tailwind.config.js — zinc is built in; this pins the v3.4 values.
module.exports = {
theme: {
extend: {
colors: {
zinc: {
50: '#fafafa',
100: '#f4f4f5',
200: '#e4e4e7',
300: '#d4d4d8',
400: '#a1a1aa',
500: '#71717a',
600: '#52525b',
700: '#3f3f46',
800: '#27272a',
900: '#18181b',
950: '#09090b',
},
},
},
},
};
/* app.css — Tailwind CSS v4 */
@import "tailwindcss";
@theme {
/* v4 has its own zinc; these pin the v3 values. */
--color-zinc-50: oklch(0.985 0.000 0);
--color-zinc-100: oklch(0.967 0.001 286.4);
--color-zinc-200: oklch(0.920 0.004 286.3);
--color-zinc-300: oklch(0.871 0.005 286.3);
--color-zinc-400: oklch(0.712 0.013 286.1);
--color-zinc-500: oklch(0.552 0.014 285.9);
--color-zinc-600: oklch(0.442 0.015 285.8);
--color-zinc-700: oklch(0.370 0.012 285.8);
--color-zinc-800: oklch(0.274 0.005 286.0);
--color-zinc-900: oklch(0.210 0.006 285.9);
--color-zinc-950: oklch(0.141 0.004 285.8);
}
{
"color": {
"zinc": {
"50": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.9804, 0.9804, 0.9804],
"hex": "#fafafa"
}
},
"100": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.9569, 0.9569, 0.9608],
"hex": "#f4f4f5"
}
},
"200": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.8941, 0.8941, 0.9059],
"hex": "#e4e4e7"
}
},
"300": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.8314, 0.8314, 0.8471],
"hex": "#d4d4d8"
}
},
"400": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.6314, 0.6314, 0.6667],
"hex": "#a1a1aa"
}
},
"500": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.4431, 0.4431, 0.4784],
"hex": "#71717a"
}
},
"600": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.3216, 0.3216, 0.3569],
"hex": "#52525b"
}
},
"700": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.2471, 0.2471, 0.2745],
"hex": "#3f3f46"
}
},
"800": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.1529, 0.1529, 0.1647],
"hex": "#27272a"
}
},
"900": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.0941, 0.0941, 0.1059],
"hex": "#18181b"
}
},
"950": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.0353, 0.0353, 0.0431],
"hex": "#09090b"
}
}
}
}
}
import SwiftUI
enum Palette {
static let zinc50 = Color(.sRGB, red: 0.980, green: 0.980, blue: 0.980, opacity: 1)
static let zinc100 = Color(.sRGB, red: 0.957, green: 0.957, blue: 0.961, opacity: 1)
static let zinc200 = Color(.sRGB, red: 0.894, green: 0.894, blue: 0.906, opacity: 1)
static let zinc300 = Color(.sRGB, red: 0.831, green: 0.831, blue: 0.847, opacity: 1)
static let zinc400 = Color(.sRGB, red: 0.631, green: 0.631, blue: 0.667, opacity: 1)
static let zinc500 = Color(.sRGB, red: 0.443, green: 0.443, blue: 0.478, opacity: 1)
static let zinc600 = Color(.sRGB, red: 0.322, green: 0.322, blue: 0.357, opacity: 1)
static let zinc700 = Color(.sRGB, red: 0.247, green: 0.247, blue: 0.275, opacity: 1)
static let zinc800 = Color(.sRGB, red: 0.153, green: 0.153, blue: 0.165, opacity: 1)
static let zinc900 = Color(.sRGB, red: 0.094, green: 0.094, blue: 0.106, opacity: 1)
static let zinc950 = Color(.sRGB, red: 0.035, green: 0.035, blue: 0.043, opacity: 1)
}
import androidx.compose.ui.graphics.Color
object Palette {
val Zinc50 = Color(0xFFFAFAFA)
val Zinc100 = Color(0xFFF4F4F5)
val Zinc200 = Color(0xFFE4E4E7)
val Zinc300 = Color(0xFFD4D4D8)
val Zinc400 = Color(0xFFA1A1AA)
val Zinc500 = Color(0xFF71717A)
val Zinc600 = Color(0xFF52525B)
val Zinc700 = Color(0xFF3F3F46)
val Zinc800 = Color(0xFF27272A)
val Zinc900 = Color(0xFF18181B)
val Zinc950 = Color(0xFF09090B)
}
Families
Other Tailwind families
The rest of the Tailwind CSS v3.4 palette, in the order Tailwind lists it.