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.
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
| Tailwind v4 token | --color-emerald-500 |
|---|---|
| OKLCH (source value) | oklch(69.6% 0.17 162.48) |
| HEX | #00BC7D |
| RGB | rgb(0, 188, 125) |
| HSL | hsl(160, 100%, 37%) |
| HWB | hwb(160 0% 26%) |
| CMYK (naive, no ICC profile) | cmyk(100%, 0%, 34%, 26%) |
| Decimal | 48,253 |
| Display P3 | color(display-p3 0.2671 0.7268 0.5084) |
| Tailwind v3 hex | #10B981 |
| Utility classes | bg-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.
| Pair | Ratio | AA | AA large | AAA | AAA large | APCA Lc |
|---|---|---|---|---|---|---|
| Black text on emerald-500 | 8.48:1 | Pass | Pass | Pass | Pass | 56.1 |
| White text on emerald-500 | 2.47:1 | Fail | Fail | Fail | Fail | −52.9 |
| Emerald-500 text on white | 2.47:1 | Fail | Fail | Fail | Fail | 47.9 |
| Emerald-500 text on black | 8.48:1 | Pass | Pass | Pass | Pass | −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)
- 5%
#0dbf84 - 15%
#26c691 - 25%
#40cd9e - 35%
#59d3ab - 45%
#73dab8 - 55%
#8ce1c5 - 65%
#a6e8d2 - 75%
#bfeedf - 85%
#d9f5ec - 95%
#f2fcf9
Shades (mixed with black)
- 5%
#00b377 - 15%
#00a06a - 25%
#008d5e - 35%
#007a51 - 45%
#006745 - 55%
#005538 - 65%
#00422c - 75%
#002f1f - 85%
#001c13 - 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.
| Harmony | Rotation | Color |
|---|---|---|
| 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
| Color | HEX | ΔE OK |
|---|---|---|
| mediumseagreen | #3cb371 | 3.5 |
| lightseagreen | #20b2aa | 8.5 |
| limegreen | #32cd32 | 10.0 |
Nearest Tailwind v4 colors
| Color | HEX | ΔE OK |
|---|---|---|
| teal-500 | #00bba7 | 6.2 |
| emerald-400 | #00d492 | 6.9 |
| green-500 | #00c950 | 7.1 |
Code snippets
<div class="bg-emerald-500 text-black">...</div>
<p class="text-emerald-500 border-emerald-500">...</p>.element {
color: var(--color-emerald-500);
background-color: oklch(69.6% 0.17 162.48);
border-color: #00bc7d;
outline-color: rgb(0 188 125);
}import SwiftUI
extension Color {
static let emerald500 = Color(red: 0.000, green: 0.737, blue: 0.490)
}import androidx.compose.ui.graphics.Color
val Emerald500 = Color(0xFF00BC7D)import 'package:flutter/material.dart';
const emerald500 = Color(0xFF00BC7D);<!-- 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.