Skip to content

Tailwind CSS v4 default palette

Tailwind emerald-400: #00D492

In Tailwind CSS v4, emerald-400 is defined as --color-emerald-400: oklch(76.5% 0.177 163.223), which is #00D492 in hex and rgb(0, 212, 146): a light, vivid green-cyan. In Tailwind v3, emerald-400 was #34D399.

emerald-400#00D492

In OKLCH, emerald-400 has a lightness of 76.5%, chroma 0.177 and hue 163.2°. It is the most saturated shade of the emerald scale.

This OKLCH value lies outside sRGB. The hex #00D492 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.3347 0.8196 0.5916).

In v3, emerald-400 was #34D399. The v4 value is ΔE OK 2.5 away; v4 is darker and 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-400

Color codes for emerald-400
Tailwind v4 token--color-emerald-400
OKLCH (source value)oklch(76.5% 0.177 163.223)
HEX#00D492
RGBrgb(0, 212, 146)
HSLhsl(161, 100%, 42%)
HWBhwb(161 0% 17%)
CMYK (naive, no ICC profile)cmyk(100%, 0%, 31%, 17%)
Decimal54,418
Display P3color(display-p3 0.3347 0.8196 0.5916)
Tailwind v3 hex#34D399
Utility classesbg-emerald-400, text-emerald-400, border-emerald-400

Tailwind emerald scale

Contrast and accessibility

On emerald-400, black text has a contrast ratio of 10.83:1 and passes AAA at any text size; white text reaches 1.93: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-40010.83:1PassPassPassPass67.4
White text on emerald-4001.93:1FailFailFailFail−40.7
Emerald-400 text on white1.93:1FailFailFailFail36.4
Emerald-400 text on black10.83:1PassPassPassPass−66.0

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #0dd697
  2. 15%
    #26daa2
  3. 25%
    #40dfad
  4. 35%
    #59e3b8
  5. 45%
    #73e7c3
  6. 55%
    #8cecce
  7. 65%
    #a6f0d9
  8. 75%
    #bff4e4
  9. 85%
    #d9f9ef
  10. 95%
    #f2fdfa

Shades (mixed with black)

  1. 5%
    #00c98b
  2. 15%
    #00b47c
  3. 25%
    #009f6e
  4. 35%
    #008a5f
  5. 45%
    #007550
  6. 55%
    #005f42
  7. 65%
    #004a33
  8. 75%
    #003525
  9. 85%
    #002016
  10. 95%
    #000b07

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, emerald-400's complementary color is #FD80D0 (close to violet), its analogous colors are #84CA47 and #00CFCD, and its triadic partners are #A7A5FF and #FF894F. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#fd80d0
Analogous−30°, +30°#84ca47#00cfcd
Triadic+120°, +240°#a7a5ff#ff894f
Split-complementary+150°, +210°#da8dff#ff8194

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-400 is a cool color: its hue is 161° 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
mediumaquamarine#66cdaa7.0
mediumseagreen#3cb3719.0
limegreen#32cd329.1

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
green-400#05df725.7
teal-400#00d5be6.0
emerald-500#00bc7d6.9

Code snippets

Tailwind CSS
<div class="bg-emerald-400 text-black">...</div>
<p class="text-emerald-400 border-emerald-400">...</p>
CSS
.element {
  color: var(--color-emerald-400);
  background-color: oklch(76.5% 0.177 163.223);
  border-color: #00d492;
  outline-color: rgb(0 212 146);
}
SwiftUI
import SwiftUI

extension Color {
  static let emerald400 = Color(red: 0.000, green: 0.831, blue: 0.573)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const emerald400 = Color(0xFF00D492);
Android XML
<!-- res/values/colors.xml -->
<color name="emerald_400">#00D492</color>

Frequently asked questions

What is the hex code for Tailwind emerald-400?
In Tailwind CSS v4, emerald-400 is oklch(76.5% 0.177 163.223), which converts to #00D492 (rgb(0, 212, 146)) in sRGB after gamut mapping, because the OKLCH value is outside sRGB. In Tailwind v3 the same name was #34D399.
What is the difference between emerald-400 in Tailwind v3 and v4?
v3 used the hex #34D399; v4 redefined the palette in OKLCH as oklch(76.5% 0.177 163.223). In v3, emerald-400 was #34D399. The v4 value is ΔE OK 2.5 away; v4 is darker and more saturated.
How do I use emerald-400 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-emerald-400). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on emerald-400?
White text on emerald-400 has a contrast ratio of 1.93:1, which fails AA even for large text under WCAG 2.2. Black text reaches 10.83:1 and passes both AA and AAA. In APCA terms that is Lc −40.7 for white and Lc 67.4 for black.
Which CSS named color is closest to emerald-400?
The closest is mediumaquamarine (#66CDAA) at ΔE OK 7.0, followed by mediumseagreen and limegreen.

Last reviewed by Arielton Oberek.