Tailwind CSS v4 default palette
Tailwind green-100: #DCFCE7
In Tailwind CSS v4, green-100 is defined as --color-green-100: oklch(96.2% 0.044 156.743), which is #DCFCE7 in hex and rgb(220, 252, 231): an off-white with a green tint. In Tailwind v3, green-100 was #DCFCE7.
In OKLCH, green-100 has a lightness of 96.2%, chroma 0.044 and hue 156.7°.
The value fits inside sRGB, so the hex #DCFCE7 represents it without loss on any screen.
In v3, green-100 was #DCFCE7. The v4 value is ΔE OK 0.1 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-100
| Tailwind v4 token | --color-green-100 |
|---|---|
| OKLCH (source value) | oklch(96.2% 0.044 156.743) |
| HEX | #DCFCE7 |
| RGB | rgb(220, 252, 231) |
| HSL | hsl(141, 84%, 93%) |
| HWB | hwb(141 86% 1%) |
| CMYK (naive, no ICC profile) | cmyk(13%, 0%, 8%, 1%) |
| Decimal | 14,482,663 |
| Tailwind v3 hex | #DCFCE7 |
| Utility classes | bg-green-100, text-green-100, border-green-100 |
Tailwind green scale
Contrast and accessibility
On green-100, black text has a contrast ratio of 19.12:1 and passes AAA at any text size; white text reaches 1.09: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 green-100 | 19.12:1 | Pass | Pass | Pass | Pass | 99.6 |
| White text on green-100 | 1.09:1 | Fail | Fail | Fail | Fail | 0.0 |
| Green-100 text on white | 1.09:1 | Fail | Fail | Fail | Fail | 0.0 |
| Green-100 text on black | 19.12:1 | Pass | Pass | Pass | Pass | −100.8 |
Tints and shades
Each step mixes var(--color-green-100) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-green-100), white 25%) in CSS.
Tints (mixed with white)
- 5%
#defce8 - 15%
#e1fceb - 25%
#e5fded - 35%
#e8fdef - 45%
#ecfdf2 - 55%
#effef4 - 65%
#f3fef7 - 75%
#f6fef9 - 85%
#fafffb - 95%
#fdfffe
Shades (mixed with black)
- 5%
#d1efdb - 15%
#bbd6c4 - 25%
#a5bdad - 35%
#8fa496 - 45%
#798b7f - 55%
#637168 - 65%
#4d5851 - 75%
#373f3a - 85%
#212623 - 95%
#0b0d0c
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, green-100's complementary color is #FFE8FE (close to lavenderblush), its analogous colors are #EBF9D9 and #D2FDF7, and its triadic partners are #EBF1FF and #FFE9DF. For text on top, black gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #ffe8fe |
| Analogous | −30°, +30° | #ebf9d9#d2fdf7 |
| Triadic | +120°, +240° | #ebf1ff#ffe9df |
| Split-complementary | +150°, +210° | #faebff#ffe7ee |
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-100 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 Tailwind v4 colors
| Color | HEX | ΔE OK |
|---|---|---|
| emerald-100 | #d0fae5 | 1.5 |
| teal-100 | #cbfbf1 | 2.3 |
| emerald-50 | #ecfdf5 | 2.9 |
Code snippets
<div class="bg-green-100 text-black">...</div>
<p class="text-green-100 border-green-100">...</p>.element {
color: var(--color-green-100);
background-color: oklch(96.2% 0.044 156.743);
border-color: #dcfce7;
outline-color: rgb(220 252 231);
}import SwiftUI
extension Color {
static let green100 = Color(red: 0.863, green: 0.988, blue: 0.906)
}import androidx.compose.ui.graphics.Color
val Green100 = Color(0xFFDCFCE7)import 'package:flutter/material.dart';
const green100 = Color(0xFFDCFCE7);<!-- res/values/colors.xml -->
<color name="green_100">#DCFCE7</color>Frequently asked questions
- What is the hex code for Tailwind green-100?
- In Tailwind CSS v4, green-100 is oklch(96.2% 0.044 156.743), which converts to #DCFCE7 (rgb(220, 252, 231)) in sRGB. In Tailwind v3 the same name was #DCFCE7.
- What is the difference between green-100 in Tailwind v3 and v4?
- v3 used the hex #DCFCE7; v4 redefined the palette in OKLCH as oklch(96.2% 0.044 156.743). In v3, green-100 was #DCFCE7. The v4 value is ΔE OK 0.1 away, below the point where most people can tell them apart.
- How do I use green-100 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-green-100). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on green-100?
- White text on green-100 has a contrast ratio of 1.09:1, which fails AA even for large text under WCAG 2.2. Black text reaches 19.12:1 and passes both AA and AAA. In APCA terms that is Lc 0.0 for white and Lc 99.6 for black.
- Which CSS named color is closest to green-100?
- The closest is honeydew (#F0FFF0) at ΔE OK 3.0, followed by lightcyan and beige.
Last reviewed by Arielton Oberek.