Tailwind CSS v4 default palette
Tailwind neutral-200: #E5E5E5
In Tailwind CSS v4, neutral-200 is defined as --color-neutral-200: oklch(92.2% 0 none), which is #E5E5E5 in hex and rgb(229, 229, 229): a pale neutral gray. In Tailwind v3, neutral-200 was #E5E5E5.
In OKLCH, neutral-200 has a lightness of 92.2% and zero chroma: a gray with no hue at all.
The value fits inside sRGB, so the hex #E5E5E5 represents it without loss on any screen.
In v3, neutral-200 was #E5E5E5. The v4 value is ΔE OK 0.0 away, below the point where most people can tell them apart.
Tailwind neutral is a true gray: its OKLCH chroma is zero in every shade, so it has no hue at all.
Color codes for neutral-200
| Tailwind v4 token | --color-neutral-200 |
|---|---|
| OKLCH (source value) | oklch(92.2% 0 none) |
| HEX | #E5E5E5 |
| RGB | rgb(229, 229, 229) |
| HSL | hsl(0, 0%, 90%) |
| HWB | hwb(0 90% 10%) |
| CMYK (naive, no ICC profile) | cmyk(0%, 0%, 0%, 10%) |
| Decimal | 15,066,597 |
| Tailwind v3 hex | #E5E5E5 |
| Utility classes | bg-neutral-200, text-neutral-200, border-neutral-200 |
Tailwind neutral scale
Contrast and accessibility
On neutral-200, black text has a contrast ratio of 16.67:1 and passes AAA at any text size; white text reaches 1.25:1.
WCAG 2.2 contrast ratios (success criteria 1.4.3 and 1.4.6: AA needs 4.5:1 for normal text and 3:1 for large text, AAA needs 7:1 and 4.5:1). APCA Lc is the lightness contrast from the APCA-W3 0.0.98G model proposed for WCAG 3; a higher absolute value is more readable, and Lc 75 is its suggested minimum for body text.
| Pair | Ratio | AA | AA large | AAA | AAA large | APCA Lc |
|---|---|---|---|---|---|---|
| Black text on neutral-200 | 16.67:1 | Pass | Pass | Pass | Pass | 90.7 |
| White text on neutral-200 | 1.25:1 | Fail | Fail | Fail | Fail | −14.9 |
| Neutral-200 text on white | 1.25:1 | Fail | Fail | Fail | Fail | 12.9 |
| Neutral-200 text on black | 16.67:1 | Pass | Pass | Pass | Pass | −91.0 |
Tints and shades
Each step mixes var(--color-neutral-200) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-neutral-200), white 25%) in CSS.
Tints (mixed with white)
- 5%
#e6e6e6 - 15%
#e9e9e9 - 25%
#ececec - 35%
#eeeeee - 45%
#f1f1f1 - 55%
#f3f3f3 - 65%
#f6f6f6 - 75%
#f9f9f9 - 85%
#fbfbfb - 95%
#fefefe
Shades (mixed with black)
- 5%
#dadada - 15%
#c3c3c3 - 25%
#acacac - 35%
#959595 - 45%
#7e7e7e - 55%
#676767 - 65%
#505050 - 75%
#393939 - 85%
#222222 - 95%
#0b0b0b
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, neutral-200's complementary color is #E5E5E5 (close to gainsboro), its analogous colors are #E5E5E5 and #E5E5E5, and its triadic partners are #E5E5E5 and #E5E5E5. For text on top, black gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #e5e5e5 |
| Analogous | −30°, +30° | #e5e5e5#e5e5e5 |
| Triadic | +120°, +240° | #e5e5e5#e5e5e5 |
| Split-complementary | +150°, +210° | #e5e5e5#e5e5e5 |
Computed in OKLCH: the hue is rotated by 180° (complementary), ±30° (analogous), ±120° (triadic) and 180° ±30° (split-complementary) while lightness and chroma stay fixed. Results that fall outside sRGB are brought back with the CSS Color 4 gamut mapping algorithm. Because this uses OKLCH, the values differ from tools that rotate hue in HSL, but every color keeps the same perceived lightness.
Warm or cool?
Tailwind neutral-200 is close to neutral: its OKLCH chroma is only 0.000, so its temperature comes from context. It has no perceptible hue.
Nearest named and Tailwind colors
Distance is ΔE OK, the Euclidean distance in OKLab multiplied by 100. Values under about 2 are hard to tell apart side by side.
Code snippets
<div class="bg-neutral-200 text-black">...</div>
<p class="text-neutral-200 border-neutral-200">...</p>.element {
color: var(--color-neutral-200);
background-color: oklch(92.2% 0 none);
border-color: #e5e5e5;
outline-color: rgb(229 229 229);
}import SwiftUI
extension Color {
static let neutral200 = Color(red: 0.898, green: 0.898, blue: 0.898)
}import androidx.compose.ui.graphics.Color
val Neutral200 = Color(0xFFE5E5E5)import 'package:flutter/material.dart';
const neutral200 = Color(0xFFE5E5E5);<!-- res/values/colors.xml -->
<color name="neutral_200">#E5E5E5</color>Frequently asked questions
- What is the hex code for Tailwind neutral-200?
- In Tailwind CSS v4, neutral-200 is oklch(92.2% 0 none), which converts to #E5E5E5 (rgb(229, 229, 229)) in sRGB. In Tailwind v3 the same name was #E5E5E5.
- What is the difference between neutral-200 in Tailwind v3 and v4?
- v3 used the hex #E5E5E5; v4 redefined the palette in OKLCH as oklch(92.2% 0 none). In v3, neutral-200 was #E5E5E5. The v4 value is ΔE OK 0.0 away, below the point where most people can tell them apart.
- How do I use neutral-200 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-neutral-200). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on neutral-200?
- White text on neutral-200 has a contrast ratio of 1.25:1, which fails AA even for large text under WCAG 2.2. Black text reaches 16.67:1 and passes both AA and AAA. In APCA terms that is Lc −14.9 for white and Lc 90.7 for black.
- Which CSS named color is closest to neutral-200?
- The closest is gainsboro (#DCDCDC) at ΔE OK 2.8, followed by lavender and mistyrose.
Last reviewed by Arielton Oberek.