Skip to content

Tailwind CSS v4 default palette

Tailwind emerald-500: #00BC7D

In Tailwind CSS v4, emerald-500 is defined as --color-emerald-500: oklch(69.6% 0.17 162.48), which is #00BC7D in hex and rgb(0, 188, 125): a medium, vivid green-cyan. In Tailwind v3, emerald-500 was #10B981.

emerald-500#00BC7D

In OKLCH, emerald-500 has a lightness of 69.6%, chroma 0.170 and hue 162.5°.

This OKLCH value lies outside sRGB. The hex #00BC7D 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.2671 0.7268 0.5084).

In v3, emerald-500 was #10B981. The v4 value is ΔE OK 2.1 away; 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-500

Color codes for emerald-500
Tailwind v4 token--color-emerald-500
OKLCH (source value)oklch(69.6% 0.17 162.48)
HEX#00BC7D
RGBrgb(0, 188, 125)
HSLhsl(160, 100%, 37%)
HWBhwb(160 0% 26%)
CMYK (naive, no ICC profile)cmyk(100%, 0%, 34%, 26%)
Decimal48,253
Display P3color(display-p3 0.2671 0.7268 0.5084)
Tailwind v3 hex#10B981
Utility classesbg-emerald-500, text-emerald-500, border-emerald-500

Tailwind emerald scale

Contrast and accessibility

On emerald-500, black text has a contrast ratio of 8.48:1 and passes AAA at any text size; white text reaches 2.47: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-5008.48:1PassPassPassPass56.1
White text on emerald-5002.47:1FailFailFailFail−52.9
Emerald-500 text on white2.47:1FailFailFailFail47.9
Emerald-500 text on black8.48:1PassPassPassPass−54.1

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #0dbf84
  2. 15%
    #26c691
  3. 25%
    #40cd9e
  4. 35%
    #59d3ab
  5. 45%
    #73dab8
  6. 55%
    #8ce1c5
  7. 65%
    #a6e8d2
  8. 75%
    #bfeedf
  9. 85%
    #d9f5ec
  10. 95%
    #f2fcf9

Shades (mixed with black)

  1. 5%
    #00b377
  2. 15%
    #00a06a
  3. 25%
    #008d5e
  4. 35%
    #007a51
  5. 45%
    #006745
  6. 55%
    #005538
  7. 65%
    #00422c
  8. 75%
    #002f1f
  9. 85%
    #001c13
  10. 95%
    #000906

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, emerald-500's complementary color is #E26DBA (close to orchid), its analogous colors are #73B233 and #00B7B4, and its triadic partners are #908CFF and #F1733C. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#e26dba
Analogous−30°, +30°#73b233#00b7b4
Triadic+120°, +240°#908cff#f1733c
Split-complementary+150°, +210°#c17ae8#f36980

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-500 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
mediumseagreen#3cb3713.5
lightseagreen#20b2aa8.5
limegreen#32cd3210.0

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
teal-500#00bba76.2
emerald-400#00d4926.9
green-500#00c9507.1

Code snippets

Tailwind CSS
<div class="bg-emerald-500 text-black">...</div>
<p class="text-emerald-500 border-emerald-500">...</p>
CSS
.element {
  color: var(--color-emerald-500);
  background-color: oklch(69.6% 0.17 162.48);
  border-color: #00bc7d;
  outline-color: rgb(0 188 125);
}
SwiftUI
import SwiftUI

extension Color {
  static let emerald500 = Color(red: 0.000, green: 0.737, blue: 0.490)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const emerald500 = Color(0xFF00BC7D);
Android XML
<!-- res/values/colors.xml -->
<color name="emerald_500">#00BC7D</color>

Frequently asked questions

What is the hex code for Tailwind emerald-500?
In Tailwind CSS v4, emerald-500 is oklch(69.6% 0.17 162.48), which converts to #00BC7D (rgb(0, 188, 125)) in sRGB after gamut mapping, because the OKLCH value is outside sRGB. In Tailwind v3 the same name was #10B981.
What is the difference between emerald-500 in Tailwind v3 and v4?
v3 used the hex #10B981; v4 redefined the palette in OKLCH as oklch(69.6% 0.17 162.48). In v3, emerald-500 was #10B981. The v4 value is ΔE OK 2.1 away; v4 is more saturated.
How do I use emerald-500 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-emerald-500). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on emerald-500?
White text on emerald-500 has a contrast ratio of 2.47:1, which fails AA even for large text under WCAG 2.2. Black text reaches 8.48:1 and passes both AA and AAA. In APCA terms that is Lc −52.9 for white and Lc 56.1 for black.
Which CSS named color is closest to emerald-500?
The closest is mediumseagreen (#3CB371) at ΔE OK 3.5, followed by lightseagreen and limegreen.

Last reviewed by Arielton Oberek.