Skip to content

Tailwind CSS v4 default palette

Tailwind green-200: #B9F8CF

In Tailwind CSS v4, green-200 is defined as --color-green-200: oklch(92.5% 0.084 155.995), which is #B9F8CF in hex and rgb(185, 248, 207): a pale, muted green. In Tailwind v3, green-200 was #BBF7D0.

green-200#B9F8CF

In OKLCH, green-200 has a lightness of 92.5%, chroma 0.084 and hue 156.0°.

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

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

Tailwind green is the standard success color; in v4 its mid shades moved to a more saturated OKLCH green than the v3 hex values.

Color codes for green-200

Color codes for green-200
Tailwind v4 token--color-green-200
OKLCH (source value)oklch(92.5% 0.084 155.995)
HEX#B9F8CF
RGBrgb(185, 248, 207)
HSLhsl(141, 82%, 85%)
HWBhwb(141 73% 3%)
CMYK (naive, no ICC profile)cmyk(25%, 0%, 17%, 3%)
Decimal12,187,855
Tailwind v3 hex#BBF7D0
Utility classesbg-green-200, text-green-200, border-green-200

Tailwind green scale

Contrast and accessibility

On green-200, black text has a contrast ratio of 17.39:1 and passes AAA at any text size; white text reaches 1.20: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 green-20017.39:1PassPassPassPass93.4
White text on green-2001.20:1FailFailFailFail−11.8
Green-200 text on white1.20:1FailFailFailFail10.1
Green-200 text on black17.39:1PassPassPassPass−94.0

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #bdf8d1
  2. 15%
    #c4f9d6
  3. 25%
    #cbfadb
  4. 35%
    #d2fae0
  5. 45%
    #d9fbe5
  6. 55%
    #e0fce9
  7. 65%
    #e7fdee
  8. 75%
    #eefdf3
  9. 85%
    #f5fef8
  10. 95%
    #fcfffd

Shades (mixed with black)

  1. 5%
    #b0ecc5
  2. 15%
    #9dd3b0
  3. 25%
    #8bba9b
  4. 35%
    #78a187
  5. 45%
    #668872
  6. 55%
    #53705d
  7. 65%
    #415748
  8. 75%
    #2e3e34
  9. 85%
    #1c251f
  10. 95%
    #090c0a

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, green-200's complementary color is #FFD2FC (close to lavender), its analogous colors are #D8F1B4 and #A4F9EE, and its triadic partners are #DBE4FF and #FFD9CA. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#ffd2fc
Analogous−30°, +30°#d8f1b4#a4f9ee
Triadic+120°, +240°#dbe4ff#ffd9ca
Split-complementary+150°, +210°#f2dbff#ffd5e0

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 green-200 is a cool color: its hue is 141° on the HSL wheel, in the green, blue and violet range that is conventionally called cool.

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
aquamarine#7fffd45.3
paleturquoise#afeeee5.7
palegoldenrod#eee8aa7.3

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
emerald-200#a4f4cf2.5
emerald-100#d0fae54.1
teal-200#96f7e44.3

Code snippets

Tailwind CSS
<div class="bg-green-200 text-black">...</div>
<p class="text-green-200 border-green-200">...</p>
CSS
.element {
  color: var(--color-green-200);
  background-color: oklch(92.5% 0.084 155.995);
  border-color: #b9f8cf;
  outline-color: rgb(185 248 207);
}
SwiftUI
import SwiftUI

extension Color {
  static let green200 = Color(red: 0.725, green: 0.973, blue: 0.812)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const green200 = Color(0xFFB9F8CF);
Android XML
<!-- res/values/colors.xml -->
<color name="green_200">#B9F8CF</color>

Frequently asked questions

What is the hex code for Tailwind green-200?
In Tailwind CSS v4, green-200 is oklch(92.5% 0.084 155.995), which converts to #B9F8CF (rgb(185, 248, 207)) in sRGB. In Tailwind v3 the same name was #BBF7D0.
What is the difference between green-200 in Tailwind v3 and v4?
v3 used the hex #BBF7D0; v4 redefined the palette in OKLCH as oklch(92.5% 0.084 155.995). In v3, green-200 was #BBF7D0. The v4 value is ΔE OK 0.3 away, below the point where most people can tell them apart.
How do I use green-200 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-green-200). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on green-200?
White text on green-200 has a contrast ratio of 1.20:1, which fails AA even for large text under WCAG 2.2. Black text reaches 17.39:1 and passes both AA and AAA. In APCA terms that is Lc −11.8 for white and Lc 93.4 for black.
Which CSS named color is closest to green-200?
The closest is aquamarine (#7FFFD4) at ΔE OK 5.3, followed by paleturquoise and palegoldenrod.

Last reviewed by Arielton Oberek.