Tailwind CSS v4 default palette
Tailwind green-800: #016630
In Tailwind CSS v4, green-800 is defined as --color-green-800: oklch(44.8% 0.119 151.328), which is #016630 in hex and rgb(1, 102, 48): a dark, moderately saturated green. In Tailwind v3, green-800 was #166534.
In OKLCH, green-800 has a lightness of 44.8%, chroma 0.119 and hue 151.3°.
The value fits inside sRGB, so the hex #016630 represents it without loss on any screen.
In v3, green-800 was #166534. The v4 value is ΔE OK 1.1 away, below the point where most people can tell them apart; v4 is more saturated.
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-800
| Tailwind v4 token | --color-green-800 |
|---|---|
| OKLCH (source value) | oklch(44.8% 0.119 151.328) |
| HEX | #016630 |
| RGB | rgb(1, 102, 48) |
| HSL | hsl(148, 98%, 20%) |
| HWB | hwb(148 0% 60%) |
| CMYK (naive, no ICC profile) | cmyk(99%, 0%, 53%, 60%) |
| Decimal | 91,696 |
| Tailwind v3 hex | #166534 |
| Utility classes | bg-green-800, text-green-800, border-green-800 |
Tailwind green scale
Contrast and accessibility
On green-800, white text has a contrast ratio of 7.13:1 and passes AAA at any text size; black text reaches 2.94: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-800 | 2.94:1 | Fail | Fail | Fail | Fail | 19.9 |
| White text on green-800 | 7.13:1 | Pass | Pass | Pass | Pass | −89.1 |
| Green-800 text on white | 7.13:1 | Pass | Pass | Pass | Pass | 84.2 |
| Green-800 text on black | 2.94:1 | Fail | Fail | Fail | Fail | −17.8 |
Tints and shades
Each step mixes var(--color-green-800) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-green-800), white 25%) in CSS.
Tints (mixed with white)
- 5%
#0e6e3a - 15%
#277d4f - 25%
#418c64 - 35%
#5a9c78 - 45%
#73ab8d - 55%
#8dbaa2 - 65%
#a6c9b7 - 75%
#c0d9cb - 85%
#d9e8e0 - 95%
#f2f7f5
Shades (mixed with black)
- 5%
#01612e - 15%
#015729 - 25%
#014d24 - 35%
#01421f - 45%
#01381a - 55%
#002e16 - 65%
#002411 - 75%
#001a0c - 85%
#000f07 - 95%
#000502
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, green-800's complementary color is #793872 (close to rebeccapurple), its analogous colors are #4B5E00 and #006658, and its triadic partners are #3E4E96 and #8B3628. For text on top, white gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #793872 |
| Analogous | −30°, +30° | #4b5e00#006658 |
| Triadic | +120°, +240° | #3e4e96#8b3628 |
| Split-complementary | +150°, +210° | #61428b#873350 |
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-800 is a cool color: its hue is 148° 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
| Color | HEX | ΔE OK |
|---|---|---|
| darkgreen | #006400 | 3.8 |
| darkolivegreen | #556b2f | 7.2 |
| green | #008000 | 9.5 |
Nearest Tailwind v4 colors
| Color | HEX | ΔE OK |
|---|---|---|
| emerald-800 | #006045 | 4.1 |
| lime-800 | #3c6300 | 4.4 |
| green-900 | #0d542b | 6.0 |
Code snippets
<div class="bg-green-800 text-white">...</div>
<p class="text-green-800 border-green-800">...</p>.element {
color: var(--color-green-800);
background-color: oklch(44.8% 0.119 151.328);
border-color: #016630;
outline-color: rgb(1 102 48);
}import SwiftUI
extension Color {
static let green800 = Color(red: 0.004, green: 0.400, blue: 0.188)
}import androidx.compose.ui.graphics.Color
val Green800 = Color(0xFF016630)import 'package:flutter/material.dart';
const green800 = Color(0xFF016630);<!-- res/values/colors.xml -->
<color name="green_800">#016630</color>Frequently asked questions
- What is the hex code for Tailwind green-800?
- In Tailwind CSS v4, green-800 is oklch(44.8% 0.119 151.328), which converts to #016630 (rgb(1, 102, 48)) in sRGB. In Tailwind v3 the same name was #166534.
- What is the difference between green-800 in Tailwind v3 and v4?
- v3 used the hex #166534; v4 redefined the palette in OKLCH as oklch(44.8% 0.119 151.328). In v3, green-800 was #166534. The v4 value is ΔE OK 1.1 away, below the point where most people can tell them apart; v4 is more saturated.
- How do I use green-800 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-green-800). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on green-800?
- White text on green-800 has a contrast ratio of 7.13:1, which passes both AA and AAA under WCAG 2.2. Black text reaches 2.94:1 and fails AA even for large text. In APCA terms that is Lc −89.1 for white and Lc 19.9 for black.
- Which CSS named color is closest to green-800?
- The closest is darkgreen (#006400) at ΔE OK 3.8, followed by darkolivegreen and green.
Last reviewed by Arielton Oberek.