Tailwind CSS v4 default palette
Tailwind gray-200: #E5E7EB
In Tailwind CSS v4, gray-200 is defined as --color-gray-200: oklch(92.8% 0.006 264.531), which is #E5E7EB in hex and rgb(229, 231, 235): a pale gray with a faint blue tint. In Tailwind v3, gray-200 was #E5E7EB.
In OKLCH, gray-200 has a lightness of 92.8%, chroma 0.006 and hue 264.5°.
The value fits inside sRGB, so the hex #E5E7EB represents it without loss on any screen.
In v3, gray-200 was #E5E7EB. The v4 value is ΔE OK 0.0 away, below the point where most people can tell them apart.
Tailwind gray is a cool gray with a lighter blue tint than slate, the default neutral in many Tailwind projects.
Color codes for gray-200
| Tailwind v4 token | --color-gray-200 |
|---|---|
| OKLCH (source value) | oklch(92.8% 0.006 264.531) |
| HEX | #E5E7EB |
| RGB | rgb(229, 231, 235) |
| HSL | hsl(220, 13%, 91%) |
| HWB | hwb(220 90% 8%) |
| CMYK (naive, no ICC profile) | cmyk(3%, 2%, 0%, 8%) |
| Decimal | 15,067,115 |
| Tailwind v3 hex | #E5E7EB |
| Utility classes | bg-gray-200, text-gray-200, border-gray-200 |
Tailwind gray scale
Contrast and accessibility
On gray-200, black text has a contrast ratio of 16.96:1 and passes AAA at any text size; white text reaches 1.23: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 gray-200 | 16.96:1 | Pass | Pass | Pass | Pass | 91.8 |
| White text on gray-200 | 1.23:1 | Fail | Fail | Fail | Fail | −13.7 |
| Gray-200 text on white | 1.23:1 | Fail | Fail | Fail | Fail | 11.8 |
| Gray-200 text on black | 16.96:1 | Pass | Pass | Pass | Pass | −92.2 |
Tints and shades
Each step mixes var(--color-gray-200) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-gray-200), white 25%) in CSS.
Tints (mixed with white)
- 5%
#e6e8ec - 15%
#e9ebee - 25%
#ecedf0 - 35%
#eeeff2 - 45%
#f1f2f4 - 55%
#f3f4f6 - 65%
#f6f7f8 - 75%
#f9f9fa - 85%
#fbfbfc - 95%
#fefefe
Shades (mixed with black)
- 5%
#dadbdf - 15%
#c3c4c8 - 25%
#acadb0 - 35%
#959699 - 45%
#7e7f81 - 55%
#67686a - 65%
#505152 - 75%
#393a3b - 85%
#222323 - 95%
#0b0c0c
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, gray-200's complementary color is #E9E7E3 (close to mistyrose), its analogous colors are #E3E8EB and #E7E6EB, and its triadic partners are #EBE6E5 and #E5E8E5. For text on top, black gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #e9e7e3 |
| Analogous | −30°, +30° | #e3e8eb#e7e6eb |
| Triadic | +120°, +240° | #ebe6e5#e5e8e5 |
| Split-complementary | +150°, +210° | #eae6e3#e7e8e3 |
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 gray-200 is close to neutral: its OKLCH chroma is only 0.006, so its temperature comes from context. The faint 220° hue gives it a slightly cool cast.
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-gray-200 text-black">...</div>
<p class="text-gray-200 border-gray-200">...</p>.element {
color: var(--color-gray-200);
background-color: oklch(92.8% 0.006 264.531);
border-color: #e5e7eb;
outline-color: rgb(229 231 235);
}import SwiftUI
extension Color {
static let gray200 = Color(red: 0.898, green: 0.906, blue: 0.922)
}import androidx.compose.ui.graphics.Color
val Gray200 = Color(0xFFE5E7EB)import 'package:flutter/material.dart';
const gray200 = Color(0xFFE5E7EB);<!-- res/values/colors.xml -->
<color name="gray_200">#E5E7EB</color>Frequently asked questions
- What is the hex code for Tailwind gray-200?
- In Tailwind CSS v4, gray-200 is oklch(92.8% 0.006 264.531), which converts to #E5E7EB (rgb(229, 231, 235)) in sRGB. In Tailwind v3 the same name was #E5E7EB.
- What is the difference between gray-200 in Tailwind v3 and v4?
- v3 used the hex #E5E7EB; v4 redefined the palette in OKLCH as oklch(92.8% 0.006 264.531). In v3, gray-200 was #E5E7EB. The v4 value is ΔE OK 0.0 away, below the point where most people can tell them apart.
- How do I use gray-200 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-gray-200). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on gray-200?
- White text on gray-200 has a contrast ratio of 1.23:1, which fails AA even for large text under WCAG 2.2. Black text reaches 16.96:1 and passes both AA and AAA. In APCA terms that is Lc −13.7 for white and Lc 91.8 for black.
- Which CSS named color is closest to gray-200?
- The closest is lavender (#E6E6FA) at ΔE OK 2.2, followed by gainsboro and mistyrose.
Last reviewed by Arielton Oberek.