Skip to content

Tailwind CSS v4 default palette

Tailwind zinc-200: #E4E4E7

In Tailwind CSS v4, zinc-200 is defined as --color-zinc-200: oklch(92% 0.004 286.32), which is #E4E4E7 in hex and rgb(228, 228, 231): a pale gray with a faint blue tint. In Tailwind v3, zinc-200 was #E4E4E7.

zinc-200#E4E4E7

In OKLCH, zinc-200 has a lightness of 92.0%, chroma 0.004 and hue 286.3°.

The value fits inside sRGB, so the hex #E4E4E7 represents it without loss on any screen.

In v3, zinc-200 was #E4E4E7. The v4 value is ΔE OK 0.0 away, below the point where most people can tell them apart.

Tailwind zinc is a nearly neutral gray with a faint cool violet cast, sitting between the bluish gray and the hueless neutral.

Color codes for zinc-200

Color codes for zinc-200
Tailwind v4 token--color-zinc-200
OKLCH (source value)oklch(92% 0.004 286.32)
HEX#E4E4E7
RGBrgb(228, 228, 231)
HSLhsl(240, 6%, 90%)
HWBhwb(240 89% 9%)
CMYK (naive, no ICC profile)cmyk(1%, 1%, 0%, 9%)
Decimal15,000,807
Tailwind v3 hex#E4E4E7
Utility classesbg-zinc-200, text-zinc-200, border-zinc-200

Tailwind zinc scale

Contrast and accessibility

On zinc-200, black text has a contrast ratio of 16.55:1 and passes AAA at any text size; white text reaches 1.26: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.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on zinc-20016.55:1PassPassPassPass90.2
White text on zinc-2001.26:1FailFailFailFail−15.4
Zinc-200 text on white1.26:1FailFailFailFail13.4
Zinc-200 text on black16.55:1PassPassPassPass−90.5

Tints and shades

Each step mixes var(--color-zinc-200) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-zinc-200), white 25%) in CSS.

Tints (mixed with white)

  1. 5%
    #e5e5e8
  2. 15%
    #e8e8eb
  3. 25%
    #ebebed
  4. 35%
    #ededef
  5. 45%
    #f0f0f2
  6. 55%
    #f3f3f4
  7. 65%
    #f6f6f7
  8. 75%
    #f8f8f9
  9. 85%
    #fbfbfb
  10. 95%
    #fefefe

Shades (mixed with black)

  1. 5%
    #d9d9db
  2. 15%
    #c2c2c4
  3. 25%
    #ababad
  4. 35%
    #949496
  5. 45%
    #7d7d7f
  6. 55%
    #676768
  7. 65%
    #505051
  8. 75%
    #39393a
  9. 85%
    #222223
  10. 95%
    #0b0b0c

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, zinc-200's complementary color is #E5E5E2 (close to gainsboro), its analogous colors are #E3E5E7 and #E6E4E6, and its triadic partners are #E7E4E2 and #E2E5E4. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#e5e5e2
Analogous−30°, +30°#e3e5e7#e6e4e6
Triadic+120°, +240°#e7e4e2#e2e5e4
Split-complementary+150°, +210°#e6e4e2#e3e5e2

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 zinc-200 is close to neutral: its OKLCH chroma is only 0.004, 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.

Nearest CSS named colors

Nearest CSS named colors
ColorHEXΔE OK
lavender#e6e6fa2.5
gainsboro#dcdcdc2.6
mistyrose#ffe4e13.7

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
mauve-200#e7e4e70.4
neutral-200#e5e5e50.4
stone-200#e7e5e40.7

Code snippets

Tailwind CSS
<div class="bg-zinc-200 text-black">...</div>
<p class="text-zinc-200 border-zinc-200">...</p>
CSS
.element {
  color: var(--color-zinc-200);
  background-color: oklch(92% 0.004 286.32);
  border-color: #e4e4e7;
  outline-color: rgb(228 228 231);
}
SwiftUI
import SwiftUI

extension Color {
  static let zinc200 = Color(red: 0.894, green: 0.894, blue: 0.906)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

val Zinc200 = Color(0xFFE4E4E7)
Flutter
import 'package:flutter/material.dart';

const zinc200 = Color(0xFFE4E4E7);
Android XML
<!-- res/values/colors.xml -->
<color name="zinc_200">#E4E4E7</color>

Frequently asked questions

What is the hex code for Tailwind zinc-200?
In Tailwind CSS v4, zinc-200 is oklch(92% 0.004 286.32), which converts to #E4E4E7 (rgb(228, 228, 231)) in sRGB. In Tailwind v3 the same name was #E4E4E7.
What is the difference between zinc-200 in Tailwind v3 and v4?
v3 used the hex #E4E4E7; v4 redefined the palette in OKLCH as oklch(92% 0.004 286.32). In v3, zinc-200 was #E4E4E7. The v4 value is ΔE OK 0.0 away, below the point where most people can tell them apart.
How do I use zinc-200 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-zinc-200). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on zinc-200?
White text on zinc-200 has a contrast ratio of 1.26:1, which fails AA even for large text under WCAG 2.2. Black text reaches 16.55:1 and passes both AA and AAA. In APCA terms that is Lc −15.4 for white and Lc 90.2 for black.
Which CSS named color is closest to zinc-200?
The closest is lavender (#E6E6FA) at ΔE OK 2.5, followed by gainsboro and mistyrose.

Last reviewed by Arielton Oberek.