Tailwind CSS v4 default palette
Tailwind emerald-800: #006045
In Tailwind CSS v4, emerald-800 is defined as --color-emerald-800: oklch(43.2% 0.095 166.913), which is #006045 in hex and rgb(0, 96, 69): a dark, moderately saturated green-cyan. In Tailwind v3, emerald-800 was #065F46.
In OKLCH, emerald-800 has a lightness of 43.2%, chroma 0.095 and hue 166.9°.
This OKLCH value lies outside sRGB. The hex #006045 is the sRGB fallback from the CSS Color 4 gamut mapping algorithm; on Display P3 screens browsers show a more saturated color, close to color(display-p3 0.1354 0.3714 0.2776).
In v3, emerald-800 was #065F46. The v4 value is ΔE OK 0.9 away, below the point where most people can tell them apart; v4 is more saturated.
Tailwind emerald is a cooler, slightly bluer green than green, common for success states in finance and health products.
Color codes for emerald-800
| Tailwind v4 token | --color-emerald-800 |
|---|---|
| OKLCH (source value) | oklch(43.2% 0.095 166.913) |
| HEX | #006045 |
| RGB | rgb(0, 96, 69) |
| HSL | hsl(163, 100%, 19%) |
| HWB | hwb(163 0% 62%) |
| CMYK (naive, no ICC profile) | cmyk(100%, 0%, 28%, 62%) |
| Decimal | 24,645 |
| Display P3 | color(display-p3 0.1354 0.3714 0.2776) |
| Tailwind v3 hex | #065F46 |
| Utility classes | bg-emerald-800, text-emerald-800, border-emerald-800 |
Tailwind emerald scale
Contrast and accessibility
On emerald-800, white text has a contrast ratio of 7.61:1 and passes AAA at any text size; black text reaches 2.75: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 emerald-800 | 2.75:1 | Fail | Fail | Fail | Fail | 18.1 |
| White text on emerald-800 | 7.61:1 | Pass | Pass | Pass | Pass | −90.7 |
| Emerald-800 text on white | 7.61:1 | Pass | Pass | Pass | Pass | 85.9 |
| Emerald-800 text on black | 2.75:1 | Fail | Fail | Fail | Fail | −16.1 |
Tints and shades
Each step mixes var(--color-emerald-800) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-emerald-800), white 25%) in CSS.
Tints (mixed with white)
- 5%
#0d684e - 15%
#267861 - 25%
#408874 - 35%
#599886 - 45%
#73a899 - 55%
#8cb7ab - 65%
#a6c7be - 75%
#bfd7d1 - 85%
#d9e7e3 - 95%
#f2f7f6
Shades (mixed with black)
- 5%
#005b42 - 15%
#00523b - 25%
#004834 - 35%
#003e2d - 45%
#003526 - 55%
#002b1f - 65%
#002218 - 75%
#001811 - 85%
#000e0a - 95%
#000503
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, emerald-800's complementary color is #75385A (close to purple), its analogous colors are #365C24 and #005F62, and its triadic partners are #4D4781 and #7A3D1D. For text on top, white gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #75385a |
| Analogous | −30°, +30° | #365c24#005f62 |
| Triadic | +120°, +240° | #4d4781#7a3d1d |
| Split-complementary | +150°, +210° | #653e73#7c383d |
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 emerald-800 is a cool color: its hue is 163° 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 |
|---|---|---|
| darkslategray | #2f4f4f | 7.1 |
| darkgreen | #006400 | 7.3 |
| darkolivegreen | #556b2f | 9.0 |
Code snippets
<div class="bg-emerald-800 text-white">...</div>
<p class="text-emerald-800 border-emerald-800">...</p>.element {
color: var(--color-emerald-800);
background-color: oklch(43.2% 0.095 166.913);
border-color: #006045;
outline-color: rgb(0 96 69);
}import SwiftUI
extension Color {
static let emerald800 = Color(red: 0.000, green: 0.376, blue: 0.271)
}import androidx.compose.ui.graphics.Color
val Emerald800 = Color(0xFF006045)import 'package:flutter/material.dart';
const emerald800 = Color(0xFF006045);<!-- res/values/colors.xml -->
<color name="emerald_800">#006045</color>Frequently asked questions
- What is the hex code for Tailwind emerald-800?
- In Tailwind CSS v4, emerald-800 is oklch(43.2% 0.095 166.913), which converts to #006045 (rgb(0, 96, 69)) in sRGB after gamut mapping, because the OKLCH value is outside sRGB. In Tailwind v3 the same name was #065F46.
- What is the difference between emerald-800 in Tailwind v3 and v4?
- v3 used the hex #065F46; v4 redefined the palette in OKLCH as oklch(43.2% 0.095 166.913). In v3, emerald-800 was #065F46. The v4 value is ΔE OK 0.9 away, below the point where most people can tell them apart; v4 is more saturated.
- How do I use emerald-800 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-emerald-800). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on emerald-800?
- White text on emerald-800 has a contrast ratio of 7.61:1, which passes both AA and AAA under WCAG 2.2. Black text reaches 2.75:1 and fails AA even for large text. In APCA terms that is Lc −90.7 for white and Lc 18.1 for black.
- Which CSS named color is closest to emerald-800?
- The closest is darkslategray (#2F4F4F) at ΔE OK 7.1, followed by darkgreen and darkolivegreen.
Last reviewed by Arielton Oberek.