Skip to content

Tailwind CSS v4 default palette

Tailwind emerald-600: #009966

In Tailwind CSS v4, emerald-600 is defined as --color-emerald-600: oklch(59.6% 0.145 163.225), which is #009966 in hex and rgb(0, 153, 102): a medium, moderately saturated green-cyan. In Tailwind v3, emerald-600 was #059669.

emerald-600#009966

In OKLCH, emerald-600 has a lightness of 59.6%, chroma 0.145 and hue 163.2°.

This OKLCH value lies outside sRGB. The hex #009966 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.2066 0.5891 0.414).

In v3, emerald-600 was #059669. The v4 value is ΔE OK 1.8 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-600

Color codes for emerald-600
Tailwind v4 token--color-emerald-600
OKLCH (source value)oklch(59.6% 0.145 163.225)
HEX#009966
RGBrgb(0, 153, 102)
HSLhsl(160, 100%, 30%)
HWBhwb(160 0% 40%)
CMYK (naive, no ICC profile)cmyk(100%, 0%, 33%, 40%)
Decimal39,270
Display P3color(display-p3 0.2066 0.5891 0.414)
Tailwind v3 hex#059669
Utility classesbg-emerald-600, text-emerald-600, border-emerald-600

Tailwind emerald scale

Contrast and accessibility

On emerald-600, black text has a contrast ratio of 5.74:1 and passes AA for normal text; white text reaches 3.65: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-6005.74:1PassPassFailPass40.6
White text on emerald-6003.65:1FailPassFailFail−69.0
Emerald-600 text on white3.65:1FailPassFailFail63.5
Emerald-600 text on black5.74:1PassPassFailPass−38.2

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #0d9e6e
  2. 15%
    #26a87d
  3. 25%
    #40b38c
  4. 35%
    #59bd9c
  5. 45%
    #73c7ab
  6. 55%
    #8cd1ba
  7. 65%
    #a6dbc9
  8. 75%
    #bfe6d9
  9. 85%
    #d9f0e8
  10. 95%
    #f2faf7

Shades (mixed with black)

  1. 5%
    #009161
  2. 15%
    #008257
  3. 25%
    #00734d
  4. 35%
    #006342
  5. 45%
    #005438
  6. 55%
    #00452e
  7. 65%
    #003624
  8. 75%
    #00261a
  9. 85%
    #00170f
  10. 95%
    #000805

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, emerald-600's complementary color is #B85795 (close to mediumvioletred), its analogous colors are #5A912A and #009593, and its triadic partners are #7570D2 and #C45D2E. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#b85795
Analogous−30°, +30°#5a912a#009593
Triadic+120°, +240°#7570d2#c45d2e
Split-complementary+150°, +210°#9d62bb#c65466

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-600 is a cool color: its hue is 160° 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
seagreen#2e8b574.2
forestgreen#228b227.1
darkcyan#008b8b8.2

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
teal-600#0096895.6
green-600#00a63e7.1
green-700#0082367.8

Code snippets

Tailwind CSS
<div class="bg-emerald-600 text-black">...</div>
<p class="text-emerald-600 border-emerald-600">...</p>
CSS
.element {
  color: var(--color-emerald-600);
  background-color: oklch(59.6% 0.145 163.225);
  border-color: #009966;
  outline-color: rgb(0 153 102);
}
SwiftUI
import SwiftUI

extension Color {
  static let emerald600 = Color(red: 0.000, green: 0.600, blue: 0.400)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const emerald600 = Color(0xFF009966);
Android XML
<!-- res/values/colors.xml -->
<color name="emerald_600">#009966</color>

Frequently asked questions

What is the hex code for Tailwind emerald-600?
In Tailwind CSS v4, emerald-600 is oklch(59.6% 0.145 163.225), which converts to #009966 (rgb(0, 153, 102)) in sRGB after gamut mapping, because the OKLCH value is outside sRGB. In Tailwind v3 the same name was #059669.
What is the difference between emerald-600 in Tailwind v3 and v4?
v3 used the hex #059669; v4 redefined the palette in OKLCH as oklch(59.6% 0.145 163.225). In v3, emerald-600 was #059669. The v4 value is ΔE OK 1.8 away, below the point where most people can tell them apart; v4 is more saturated.
How do I use emerald-600 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-emerald-600). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on emerald-600?
White text on emerald-600 has a contrast ratio of 3.65:1, which passes AA only for large text (24 px, or 18.66 px bold, and up) under WCAG 2.2. Black text reaches 5.74:1 and passes AA for normal text but not AAA. In APCA terms that is Lc −69.0 for white and Lc 40.6 for black.
Which CSS named color is closest to emerald-600?
The closest is seagreen (#2E8B57) at ΔE OK 4.2, followed by forestgreen and darkcyan.

Last reviewed by Arielton Oberek.