Tailwind CSS v3.4 color family

Tailwind neutral 11 shades, 50 to 950

Neutral is one of the 22 color families in Tailwind CSS v3.4, with eleven shades from 50 to 950. Its 500 shade, #737373, is a near-neutral gray, with OKLCH chroma 0.000. Lightness runs from 0.985 at 50 to 0.145 at 950.

500 shade
#737373
OKLCH hue at 500
—
Body text on white
500 to 950
Body text on black
50 to 400

Tailwind CSS 4.3.3

neutral: current colors

11 shades with exact official OKLCH values. Use bg-neutral-500, text-neutral-500 or border-neutral-500 in Tailwind. Wide-gamut colors are preserved; these are not the v3 hex values.

ColorExact OKLCHCSS variable
neutral-50oklch(98.5% 0 none)--color-neutral-50
neutral-100oklch(97% 0 none)--color-neutral-100
neutral-200oklch(92.2% 0 none)--color-neutral-200
neutral-300oklch(87% 0 none)--color-neutral-300
neutral-400oklch(70.8% 0 none)--color-neutral-400
neutral-500oklch(55.6% 0 none)--color-neutral-500
neutral-600oklch(43.9% 0 none)--color-neutral-600
neutral-700oklch(37.1% 0 none)--color-neutral-700
neutral-800oklch(26.9% 0 none)--color-neutral-800
neutral-900oklch(20.5% 0 none)--color-neutral-900
neutral-950oklch(14.5% 0 none)--color-neutral-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#FAFAFA
    White
    1.04
    Black
    20.11
  2. 100#F5F5F5
    White
    1.09
    Black
    19.26
  3. 200#E5E5E5
    White
    1.25
    Black
    16.67
  4. 300#D4D4D4
    White
    1.48
    Black
    14.16
  5. 400#A3A3A3
    White
    2.52
    Black
    8.32
  6. 500#737373
    White
    4.74
    Black
    4.42
  7. 600#525252
    White
    7.81
    Black
    2.68
  8. 700#404040
    White
    10.36
    Black
    2.02
  9. 800#262626
    White
    15.13
    Black
    1.38
  10. 900#171717
    White
    17.92
    Black
    1.17
  11. 950#0A0A0A
    White
    19.79
    Black
    1.06

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
neutral-50#FAFAFArgb(250, 250, 250)oklch(0.985 0.000 0)1.0420.11
neutral-100#F5F5F5rgb(245, 245, 245)oklch(0.970 0.000 0)1.0919.26
neutral-200#E5E5E5rgb(229, 229, 229)oklch(0.922 0.000 0)1.2516.67
neutral-300#D4D4D4rgb(212, 212, 212)oklch(0.870 0.000 0)1.4814.16
neutral-400#A3A3A3rgb(163, 163, 163)oklch(0.715 0.000 0)2.528.32
neutral-500#737373rgb(115, 115, 115)oklch(0.556 0.000 0)4.744.42
neutral-600#525252rgb(82, 82, 82)oklch(0.439 0.000 0)7.812.68
neutral-700#404040rgb(64, 64, 64)oklch(0.371 0.000 0)10.362.02
neutral-800#262626rgb(38, 38, 38)oklch(0.269 0.000 0)15.131.38
neutral-900#171717rgb(23, 23, 23)oklch(0.205 0.000 0)17.921.17
neutral-950#0A0A0Argb(10, 10, 10)oklch(0.145 0.000 0)19.791.06

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 shade50100200300400500600700800900950
50same shade1.041.201.422.414.547.489.9314.4917.1718.96
1001.04same shade1.151.352.314.347.169.5113.8816.4418.15
2001.201.15same shade1.172.003.766.208.2312.0114.2315.71
3001.421.351.17same shade1.703.195.276.9910.2012.0913.35
4002.412.312.001.70same shade1.873.094.115.997.107.84
5004.544.343.763.191.87same shade1.642.183.193.784.17
6007.487.166.205.273.091.64same shade1.321.932.292.53
7009.939.518.236.994.112.181.32same shade1.451.721.90
80014.4913.8812.0110.205.993.191.931.45same shade1.181.30
90017.1716.4414.2312.097.103.782.291.721.18same shade1.10
95018.9618.1515.7113.357.844.172.531.901.301.10same 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: 50 and 100, ΔE2000 1.0

  • Protanopia

    Closest neighbors: 50 and 100, ΔE2000 1.0

  • Deuteranopia

    Closest neighbors: 50 and 100, ΔE2000 1.0

  • Tritanopia

    Closest neighbors: 50 and 100, ΔE2000 1.0

  • Achromatopsia

    Closest neighbors: 50 and 100, ΔE2000 1.0

Code

Design tokens

The whole family in six formats, ready to paste.

CSS custom properties

:root {
  --color-neutral-50: #fafafa;
  --color-neutral-100: #f5f5f5;
  --color-neutral-200: #e5e5e5;
  --color-neutral-300: #d4d4d4;
  --color-neutral-400: #a3a3a3;
  --color-neutral-500: #737373;
  --color-neutral-600: #525252;
  --color-neutral-700: #404040;
  --color-neutral-800: #262626;
  --color-neutral-900: #171717;
  --color-neutral-950: #0a0a0a;
}

Tailwind config

// tailwind.config.js — neutral is built in; this pins the v3.4 values.
module.exports = {
  theme: {
    extend: {
      colors: {
        neutral: {
          50: '#fafafa',
          100: '#f5f5f5',
          200: '#e5e5e5',
          300: '#d4d4d4',
          400: '#a3a3a3',
          500: '#737373',
          600: '#525252',
          700: '#404040',
          800: '#262626',
          900: '#171717',
          950: '#0a0a0a',
        },
      },
    },
  },
};

Tailwind v4 theme

/* app.css — Tailwind CSS v4 */
@import "tailwindcss";

@theme {
  /* v4 has its own neutral; these pin the v3 values. */
  --color-neutral-50: oklch(0.985 0.000 0);
  --color-neutral-100: oklch(0.970 0.000 0);
  --color-neutral-200: oklch(0.922 0.000 0);
  --color-neutral-300: oklch(0.870 0.000 0);
  --color-neutral-400: oklch(0.715 0.000 0);
  --color-neutral-500: oklch(0.556 0.000 0);
  --color-neutral-600: oklch(0.439 0.000 0);
  --color-neutral-700: oklch(0.371 0.000 0);
  --color-neutral-800: oklch(0.269 0.000 0);
  --color-neutral-900: oklch(0.205 0.000 0);
  --color-neutral-950: oklch(0.145 0.000 0);
}

Design tokens (W3C DTCG)

{
  "color": {
    "neutral": {
      "50": {
        "$type": "color",
        "$value": {
          "colorSpace": "srgb",
          "components": [0.9804, 0.9804, 0.9804],
          "hex": "#fafafa"
        }
      },
      "100": {
        "$type": "color",
        "$value": {
          "colorSpace": "srgb",
          "components": [0.9608, 0.9608, 0.9608],
          "hex": "#f5f5f5"
        }
      },
      "200": {
        "$type": "color",
        "$value": {
          "colorSpace": "srgb",
          "components": [0.898, 0.898, 0.898],
          "hex": "#e5e5e5"
        }
      },
      "300": {
        "$type": "color",
        "$value": {
          "colorSpace": "srgb",
          "components": [0.8314, 0.8314, 0.8314],
          "hex": "#d4d4d4"
        }
      },
      "400": {
        "$type": "color",
        "$value": {
          "colorSpace": "srgb",
          "components": [0.6392, 0.6392, 0.6392],
          "hex": "#a3a3a3"
        }
      },
      "500": {
        "$type": "color",
        "$value": {
          "colorSpace": "srgb",
          "components": [0.451, 0.451, 0.451],
          "hex": "#737373"
        }
      },
      "600": {
        "$type": "color",
        "$value": {
          "colorSpace": "srgb",
          "components": [0.3216, 0.3216, 0.3216],
          "hex": "#525252"
        }
      },
      "700": {
        "$type": "color",
        "$value": {
          "colorSpace": "srgb",
          "components": [0.251, 0.251, 0.251],
          "hex": "#404040"
        }
      },
      "800": {
        "$type": "color",
        "$value": {
          "colorSpace": "srgb",
          "components": [0.149, 0.149, 0.149],
          "hex": "#262626"
        }
      },
      "900": {
        "$type": "color",
        "$value": {
          "colorSpace": "srgb",
          "components": [0.0902, 0.0902, 0.0902],
          "hex": "#171717"
        }
      },
      "950": {
        "$type": "color",
        "$value": {
          "colorSpace": "srgb",
          "components": [0.0392, 0.0392, 0.0392],
          "hex": "#0a0a0a"
        }
      }
    }
  }
}

SwiftUI colors

import SwiftUI

enum Palette {
    static let neutral50 = Color(.sRGB, red: 0.980, green: 0.980, blue: 0.980, opacity: 1)
    static let neutral100 = Color(.sRGB, red: 0.961, green: 0.961, blue: 0.961, opacity: 1)
    static let neutral200 = Color(.sRGB, red: 0.898, green: 0.898, blue: 0.898, opacity: 1)
    static let neutral300 = Color(.sRGB, red: 0.831, green: 0.831, blue: 0.831, opacity: 1)
    static let neutral400 = Color(.sRGB, red: 0.639, green: 0.639, blue: 0.639, opacity: 1)
    static let neutral500 = Color(.sRGB, red: 0.451, green: 0.451, blue: 0.451, opacity: 1)
    static let neutral600 = Color(.sRGB, red: 0.322, green: 0.322, blue: 0.322, opacity: 1)
    static let neutral700 = Color(.sRGB, red: 0.251, green: 0.251, blue: 0.251, opacity: 1)
    static let neutral800 = Color(.sRGB, red: 0.149, green: 0.149, blue: 0.149, opacity: 1)
    static let neutral900 = Color(.sRGB, red: 0.090, green: 0.090, blue: 0.090, opacity: 1)
    static let neutral950 = Color(.sRGB, red: 0.039, green: 0.039, blue: 0.039, opacity: 1)
}

Jetpack Compose colors

import androidx.compose.ui.graphics.Color

object Palette {
    val Neutral50 = Color(0xFFFAFAFA)
    val Neutral100 = Color(0xFFF5F5F5)
    val Neutral200 = Color(0xFFE5E5E5)
    val Neutral300 = Color(0xFFD4D4D4)
    val Neutral400 = Color(0xFFA3A3A3)
    val Neutral500 = Color(0xFF737373)
    val Neutral600 = Color(0xFF525252)
    val Neutral700 = Color(0xFF404040)
    val Neutral800 = Color(0xFF262626)
    val Neutral900 = Color(0xFF171717)
    val Neutral950 = Color(0xFF0A0A0A)
}

Families

Other Tailwind families

The rest of the Tailwind CSS v3.4 palette, in the order Tailwind lists it.