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.

ColorExact OKLCHCSS variable
green-50oklch(98.2% 0.018 155.826)--color-green-50
green-100oklch(96.2% 0.044 156.743)--color-green-100
green-200oklch(92.5% 0.084 155.995)--color-green-200
green-300oklch(87.1% 0.15 154.449)--color-green-300
green-400oklch(79.2% 0.209 151.711)--color-green-400
green-500oklch(72.3% 0.219 149.579)--color-green-500
green-600oklch(62.7% 0.194 149.214)--color-green-600
green-700oklch(52.7% 0.154 150.069)--color-green-700
green-800oklch(44.8% 0.119 151.328)--color-green-800
green-900oklch(39.3% 0.095 152.535)--color-green-900
green-950oklch(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.

  1. 50#F0FDF4
    White
    1.04
    Black
    20.06
  2. 100#DCFCE7
    White
    1.09
    Black
    19.12
  3. 200#BBF7D0
    White
    1.21
    Black
    17.32
  4. 300#86EFAC
    White
    1.40
    Black
    14.95
  5. 400#4ADE80
    White
    1.74
    Black
    12.05
  6. 500#22C55E
    White
    2.27
    Black
    9.21
  7. 600#16A34A
    White
    3.29
    Black
    6.37
  8. 700#15803D
    White
    5.01
    Black
    4.18
  9. 800#166534
    White
    7.13
    Black
    2.94
  10. 900#14532D
    White
    9.11
    Black
    2.30
  11. 950#052E16
    White
    14.90
    Black
    1.40

Values

Hex, RGB and OKLCH values

The Tailwind CSS v3.4 values, with the contrast of white and black text on each shade.

ShadeHEXRGBOKLCHWhite textBlack text
green-50#F0FDF4rgb(240, 253, 244)oklch(0.982 0.018 155.8)1.0420.06
green-100#DCFCE7rgb(220, 252, 231)oklch(0.962 0.043 156.7)1.0919.12
green-200#BBF7D0rgb(187, 247, 208)oklch(0.925 0.081 156.0)1.2117.32
green-300#86EFACrgb(134, 239, 172)oklch(0.871 0.136 154.4)1.4014.95
green-400#4ADE80rgb(74, 222, 128)oklch(0.800 0.182 151.7)1.7412.05
green-500#22C55Ergb(34, 197, 94)oklch(0.723 0.192 149.6)2.279.21
green-600#16A34Argb(22, 163, 74)oklch(0.627 0.170 149.2)3.296.37
green-700#15803Drgb(21, 128, 61)oklch(0.527 0.137 150.1)5.014.18
green-800#166534rgb(22, 101, 52)oklch(0.448 0.108 151.3)7.132.94
green-900#14532Drgb(20, 83, 45)oklch(0.393 0.090 152.5)9.112.30
green-950#052E16rgb(5, 46, 22)oklch(0.266 0.063 152.9)14.901.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 shade50100200300400500600700800900950
50same shade1.041.151.341.662.173.144.796.818.7014.23
1001.04same shade1.101.271.582.073.004.566.498.2913.57
2001.151.10same shade1.151.431.882.714.135.887.5112.29
3001.341.271.15same shade1.241.622.343.575.076.4810.61
4001.661.581.431.24same shade1.301.892.874.095.228.55
5002.172.071.881.621.30same shade1.442.203.123.996.54
6003.143.002.712.341.891.44same shade1.522.162.764.52
7004.794.564.133.572.872.201.52same shade1.421.812.97
8006.816.495.885.074.093.122.161.42same shade1.272.09
9008.708.297.516.485.223.992.761.811.27same shade1.63
95014.2313.5712.2910.618.556.544.522.972.091.63same 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 sees
  • Typical 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.

CSS custom properties

: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

// 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',
        },
      },
    },
  },
};

Tailwind v4 theme

/* 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);
}

Design tokens (W3C DTCG)

{
  "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"
        }
      }
    }
  }
}

SwiftUI colors

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)
}

Jetpack Compose colors

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.