Tailwind CSS v3.4 color family
Tailwind green 11 shades, 50 to 950
Green is one of the 22 color families in Tailwind CSS v3.4, with eleven shades from 50 to 950. Its 500 shade, #22C55E, sits at OKLCH hue 149.6°. Lightness runs from 0.982 at 50 to 0.266 at 950.
- 500 shade
- #22C55E
- OKLCH hue at 500
- 149.6°
- Body text on white
- 700 to 950
- Body text on black
- 50 to 600
Tailwind CSS 4.3.3
green: current colors
11 shades with exact official OKLCH values. Use bg-green-500, text-green-500 or border-green-500 in Tailwind. Wide-gamut colors are preserved; these are not the v3 hex values.
| Color | Exact OKLCH | CSS variable |
|---|---|---|
| green-50 | oklch(98.2% 0.018 155.826) | --color-green-50 |
| green-100 | oklch(96.2% 0.044 156.743) | --color-green-100 |
| green-200 | oklch(92.5% 0.084 155.995) | --color-green-200 |
| green-300 | oklch(87.1% 0.15 154.449) | --color-green-300 |
| green-400 | oklch(79.2% 0.209 151.711) | --color-green-400 |
| green-500 | oklch(72.3% 0.219 149.579) | --color-green-500 |
| green-600 | oklch(62.7% 0.194 149.214) | --color-green-600 |
| green-700 | oklch(52.7% 0.154 150.069) | --color-green-700 |
| green-800 | oklch(44.8% 0.119 151.328) | --color-green-800 |
| green-900 | oklch(39.3% 0.095 152.535) | --color-green-900 |
| green-950 | oklch(26.6% 0.065 152.934) | --color-green-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 |
|---|---|---|---|---|---|
| green-50 | #F0FDF4 | rgb(240, 253, 244) | oklch(0.982 0.018 155.8) | 1.04 | 20.06 |
| green-100 | #DCFCE7 | rgb(220, 252, 231) | oklch(0.962 0.043 156.7) | 1.09 | 19.12 |
| green-200 | #BBF7D0 | rgb(187, 247, 208) | oklch(0.925 0.081 156.0) | 1.21 | 17.32 |
| green-300 | #86EFAC | rgb(134, 239, 172) | oklch(0.871 0.136 154.4) | 1.40 | 14.95 |
| green-400 | #4ADE80 | rgb(74, 222, 128) | oklch(0.800 0.182 151.7) | 1.74 | 12.05 |
| green-500 | #22C55E | rgb(34, 197, 94) | oklch(0.723 0.192 149.6) | 2.27 | 9.21 |
| green-600 | #16A34A | rgb(22, 163, 74) | oklch(0.627 0.170 149.2) | 3.29 | 6.37 |
| green-700 | #15803D | rgb(21, 128, 61) | oklch(0.527 0.137 150.1) | 5.01 | 4.18 |
| green-800 | #166534 | rgb(22, 101, 52) | oklch(0.448 0.108 151.3) | 7.13 | 2.94 |
| green-900 | #14532D | rgb(20, 83, 45) | oklch(0.393 0.090 152.5) | 9.11 | 2.30 |
| green-950 | #052E16 | rgb(5, 46, 22) | oklch(0.266 0.063 152.9) | 14.90 | 1.40 |
Legibility
Which shades pass on each other
Every shade as text on every other shade. 36 of 110 pairings pass 4.5:1 for body text, and 14 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.04 | 1.15 | 1.34 | 1.66 | 2.17 | 3.14 | 4.79 | 6.81 | 8.70 | 14.23 |
| 100 | 1.04 | same shade | 1.10 | 1.27 | 1.58 | 2.07 | 3.00 | 4.56 | 6.49 | 8.29 | 13.57 |
| 200 | 1.15 | 1.10 | same shade | 1.15 | 1.43 | 1.88 | 2.71 | 4.13 | 5.88 | 7.51 | 12.29 |
| 300 | 1.34 | 1.27 | 1.15 | same shade | 1.24 | 1.62 | 2.34 | 3.57 | 5.07 | 6.48 | 10.61 |
| 400 | 1.66 | 1.58 | 1.43 | 1.24 | same shade | 1.30 | 1.89 | 2.87 | 4.09 | 5.22 | 8.55 |
| 500 | 2.17 | 2.07 | 1.88 | 1.62 | 1.30 | same shade | 1.44 | 2.20 | 3.12 | 3.99 | 6.54 |
| 600 | 3.14 | 3.00 | 2.71 | 2.34 | 1.89 | 1.44 | same shade | 1.52 | 2.16 | 2.76 | 4.52 |
| 700 | 4.79 | 4.56 | 4.13 | 3.57 | 2.87 | 2.20 | 1.52 | same shade | 1.42 | 1.81 | 2.97 |
| 800 | 6.81 | 6.49 | 5.88 | 5.07 | 4.09 | 3.12 | 2.16 | 1.42 | same shade | 1.27 | 2.09 |
| 900 | 8.70 | 8.29 | 7.51 | 6.48 | 5.22 | 3.99 | 2.76 | 1.81 | 1.27 | same shade | 1.63 |
| 950 | 14.23 | 13.57 | 12.29 | 10.61 | 8.55 | 6.54 | 4.52 | 2.97 | 2.09 | 1.63 | 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: 800 and 900, ΔE2000 6.1
Protanopia
Closest neighbors: 50 and 100, ΔE2000 4.2
Deuteranopia
Closest neighbors: 50 and 100, ΔE2000 2.9
Tritanopia
Closest neighbors: 800 and 900, ΔE2000 5.5
Achromatopsia
Closest neighbors: 50 and 100, ΔE2000 1.2
Code
Design tokens
The whole family in six formats, ready to paste.
:root {
--color-green-50: #f0fdf4;
--color-green-100: #dcfce7;
--color-green-200: #bbf7d0;
--color-green-300: #86efac;
--color-green-400: #4ade80;
--color-green-500: #22c55e;
--color-green-600: #16a34a;
--color-green-700: #15803d;
--color-green-800: #166534;
--color-green-900: #14532d;
--color-green-950: #052e16;
}
// tailwind.config.js — green is built in; this pins the v3.4 values.
module.exports = {
theme: {
extend: {
colors: {
green: {
50: '#f0fdf4',
100: '#dcfce7',
200: '#bbf7d0',
300: '#86efac',
400: '#4ade80',
500: '#22c55e',
600: '#16a34a',
700: '#15803d',
800: '#166534',
900: '#14532d',
950: '#052e16',
},
},
},
},
};
/* app.css — Tailwind CSS v4 */
@import "tailwindcss";
@theme {
/* v4 has its own green; these pin the v3 values. */
--color-green-50: oklch(0.982 0.018 155.8);
--color-green-100: oklch(0.962 0.043 156.7);
--color-green-200: oklch(0.925 0.081 156.0);
--color-green-300: oklch(0.871 0.136 154.4);
--color-green-400: oklch(0.800 0.182 151.7);
--color-green-500: oklch(0.723 0.192 149.6);
--color-green-600: oklch(0.627 0.170 149.2);
--color-green-700: oklch(0.527 0.137 150.1);
--color-green-800: oklch(0.448 0.108 151.3);
--color-green-900: oklch(0.393 0.090 152.5);
--color-green-950: oklch(0.266 0.063 152.9);
}
{
"color": {
"green": {
"50": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.9412, 0.9922, 0.9569],
"hex": "#f0fdf4"
}
},
"100": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.8627, 0.9882, 0.9059],
"hex": "#dcfce7"
}
},
"200": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.7333, 0.9686, 0.8157],
"hex": "#bbf7d0"
}
},
"300": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.5255, 0.9373, 0.6745],
"hex": "#86efac"
}
},
"400": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.2902, 0.8706, 0.502],
"hex": "#4ade80"
}
},
"500": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.1333, 0.7725, 0.3686],
"hex": "#22c55e"
}
},
"600": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.0863, 0.6392, 0.2902],
"hex": "#16a34a"
}
},
"700": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.0824, 0.502, 0.2392],
"hex": "#15803d"
}
},
"800": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.0863, 0.3961, 0.2039],
"hex": "#166534"
}
},
"900": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.0784, 0.3255, 0.1765],
"hex": "#14532d"
}
},
"950": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.0196, 0.1804, 0.0863],
"hex": "#052e16"
}
}
}
}
}
import SwiftUI
enum Palette {
static let green50 = Color(.sRGB, red: 0.941, green: 0.992, blue: 0.957, opacity: 1)
static let green100 = Color(.sRGB, red: 0.863, green: 0.988, blue: 0.906, opacity: 1)
static let green200 = Color(.sRGB, red: 0.733, green: 0.969, blue: 0.816, opacity: 1)
static let green300 = Color(.sRGB, red: 0.525, green: 0.937, blue: 0.675, opacity: 1)
static let green400 = Color(.sRGB, red: 0.290, green: 0.871, blue: 0.502, opacity: 1)
static let green500 = Color(.sRGB, red: 0.133, green: 0.773, blue: 0.369, opacity: 1)
static let green600 = Color(.sRGB, red: 0.086, green: 0.639, blue: 0.290, opacity: 1)
static let green700 = Color(.sRGB, red: 0.082, green: 0.502, blue: 0.239, opacity: 1)
static let green800 = Color(.sRGB, red: 0.086, green: 0.396, blue: 0.204, opacity: 1)
static let green900 = Color(.sRGB, red: 0.078, green: 0.325, blue: 0.176, opacity: 1)
static let green950 = Color(.sRGB, red: 0.020, green: 0.180, blue: 0.086, opacity: 1)
}
import androidx.compose.ui.graphics.Color
object Palette {
val Green50 = Color(0xFFF0FDF4)
val Green100 = Color(0xFFDCFCE7)
val Green200 = Color(0xFFBBF7D0)
val Green300 = Color(0xFF86EFAC)
val Green400 = Color(0xFF4ADE80)
val Green500 = Color(0xFF22C55E)
val Green600 = Color(0xFF16A34A)
val Green700 = Color(0xFF15803D)
val Green800 = Color(0xFF166534)
val Green900 = Color(0xFF14532D)
val Green950 = Color(0xFF052E16)
}
Families
Other Tailwind families
The rest of the Tailwind CSS v3.4 palette, in the order Tailwind lists it.