Skip to content

Tailwind CSS v4 default palette

Tailwind emerald-900: #004F3B

In Tailwind CSS v4, emerald-900 is defined as --color-emerald-900: oklch(37.8% 0.077 168.94), which is #004F3B in hex and rgb(0, 79, 59): a dark, muted green-cyan. In Tailwind v3, emerald-900 was #064E3B.

emerald-900#004F3B

In OKLCH, emerald-900 has a lightness of 37.8%, chroma 0.077 and hue 168.9°.

This OKLCH value lies outside sRGB. The hex #004F3B 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.1178 0.303 0.2345).

In v3, emerald-900 was #064E3B. The v4 value is ΔE OK 0.4 away, below the point where most people can tell them apart.

Tailwind emerald is a cooler, slightly bluer green than green, common for success states in finance and health products.

Color codes for emerald-900

Color codes for emerald-900
Tailwind v4 token--color-emerald-900
OKLCH (source value)oklch(37.8% 0.077 168.94)
HEX#004F3B
RGBrgb(0, 79, 59)
HSLhsl(165, 100%, 15%)
HWBhwb(165 0% 69%)
CMYK (naive, no ICC profile)cmyk(100%, 0%, 25%, 69%)
Decimal20,283
Display P3color(display-p3 0.1178 0.303 0.2345)
Tailwind v3 hex#064E3B
Utility classesbg-emerald-900, text-emerald-900, border-emerald-900

Tailwind emerald scale

Contrast and accessibility

On emerald-900, white text has a contrast ratio of 9.62:1 and passes AAA at any text size; black text reaches 2.18: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 emerald-9002.18:1FailFailFailFail12.1
White text on emerald-9009.62:1PassPassPassPass−96.1
Emerald-900 text on white9.62:1PassPassPassPass91.8
Emerald-900 text on black2.18:1FailFailFailFail−10.6

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #0d5845
  2. 15%
    #266958
  3. 25%
    #407b6c
  4. 35%
    #598d80
  5. 45%
    #739e93
  6. 55%
    #8cb0a7
  7. 65%
    #a6c1ba
  8. 75%
    #bfd3ce
  9. 85%
    #d9e5e2
  10. 95%
    #f2f6f5

Shades (mixed with black)

  1. 5%
    #004b38
  2. 15%
    #004332
  3. 25%
    #003b2c
  4. 35%
    #003326
  5. 45%
    #002b20
  6. 55%
    #00241b
  7. 65%
    #001c15
  8. 75%
    #00140f
  9. 85%
    #000c09
  10. 95%
    #000403

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, emerald-900's complementary color is #5F2F48 (close to maroon), its analogous colors are #2B4B22 and #004E51, and its triadic partners are #413A68 and #623419. For text on top, white gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#5f2f48
Analogous−30°, +30°#2b4b22#004e51
Triadic+120°, +240°#413a68#623419
Split-complementary+150°, +210°#53345c#652f31

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-900 is a cool color: its hue is 165° 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
darkslategray#2f4f4f5.3
darkgreen#00640010.4
darkolivegreen#556b2f13.3

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
teal-900#0b4f4a2.9
green-900#0d542b3.4
emerald-800#0060455.7

Code snippets

Tailwind CSS
<div class="bg-emerald-900 text-white">...</div>
<p class="text-emerald-900 border-emerald-900">...</p>
CSS
.element {
  color: var(--color-emerald-900);
  background-color: oklch(37.8% 0.077 168.94);
  border-color: #004f3b;
  outline-color: rgb(0 79 59);
}
SwiftUI
import SwiftUI

extension Color {
  static let emerald900 = Color(red: 0.000, green: 0.310, blue: 0.231)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const emerald900 = Color(0xFF004F3B);
Android XML
<!-- res/values/colors.xml -->
<color name="emerald_900">#004F3B</color>

Frequently asked questions

What is the hex code for Tailwind emerald-900?
In Tailwind CSS v4, emerald-900 is oklch(37.8% 0.077 168.94), which converts to #004F3B (rgb(0, 79, 59)) in sRGB after gamut mapping, because the OKLCH value is outside sRGB. In Tailwind v3 the same name was #064E3B.
What is the difference between emerald-900 in Tailwind v3 and v4?
v3 used the hex #064E3B; v4 redefined the palette in OKLCH as oklch(37.8% 0.077 168.94). In v3, emerald-900 was #064E3B. The v4 value is ΔE OK 0.4 away, below the point where most people can tell them apart.
How do I use emerald-900 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-emerald-900). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on emerald-900?
White text on emerald-900 has a contrast ratio of 9.62:1, which passes both AA and AAA under WCAG 2.2. Black text reaches 2.18:1 and fails AA even for large text. In APCA terms that is Lc −96.1 for white and Lc 12.1 for black.
Which CSS named color is closest to emerald-900?
The closest is darkslategray (#2F4F4F) at ΔE OK 5.3, followed by darkgreen and darkolivegreen.

Last reviewed by Arielton Oberek.