Skip to content

Tailwind CSS v4 default palette

Tailwind emerald-300: #5EE9B5

In Tailwind CSS v4, emerald-300 is defined as --color-emerald-300: oklch(84.5% 0.143 164.978), which is #5EE9B5 in hex and rgb(94, 233, 181): a very light, moderately saturated green-cyan. In Tailwind v3, emerald-300 was #6EE7B7.

emerald-300#5EE9B5

In OKLCH, emerald-300 has a lightness of 84.5%, chroma 0.143 and hue 165.0°.

The value fits inside sRGB, so the hex #5EE9B5 represents it without loss on any screen.

In v3, emerald-300 was #6EE7B7. The v4 value is ΔE OK 1.3 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-300

Color codes for emerald-300
Tailwind v4 token--color-emerald-300
OKLCH (source value)oklch(84.5% 0.143 164.978)
HEX#5EE9B5
RGBrgb(94, 233, 181)
HSLhsl(158, 76%, 64%)
HWBhwb(158 37% 9%)
CMYK (naive, no ICC profile)cmyk(60%, 0%, 22%, 9%)
Decimal6,220,213
Tailwind v3 hex#6EE7B7
Utility classesbg-emerald-300, text-emerald-300, border-emerald-300

Tailwind emerald scale

Contrast and accessibility

On emerald-300, black text has a contrast ratio of 13.79:1 and passes AAA at any text size; white text reaches 1.52: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-30013.79:1PassPassPassPass79.8
White text on emerald-3001.52:1FailFailFailFail−27.1
Emerald-300 text on white1.52:1FailFailFailFail23.9
Emerald-300 text on black13.79:1PassPassPassPass−79.2

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #66eab9
  2. 15%
    #76ecc0
  3. 25%
    #86efc8
  4. 35%
    #96f1cf
  5. 45%
    #a6f3d6
  6. 55%
    #b7f5de
  7. 65%
    #c7f7e5
  8. 75%
    #d7faed
  9. 85%
    #e7fcf4
  10. 95%
    #f7fefb

Shades (mixed with black)

  1. 5%
    #59ddac
  2. 15%
    #50c69a
  3. 25%
    #47af88
  4. 35%
    #3d9776
  5. 45%
    #348064
  6. 55%
    #2a6951
  7. 65%
    #21523f
  8. 75%
    #183a2d
  9. 85%
    #0e231b
  10. 95%
    #050c09

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, emerald-300's complementary color is #FFA7E1 (close to plum), its analogous colors are #A3E17F and #0FE9E9, and its triadic partners are #C5C3FF and #FFB48C. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#ffa7e1
Analogous−30°, +30°#a3e17f#0fe9e9
Triadic+120°, +240°#c5c3ff#ffb48c
Split-complementary+150°, +210°#efafff#ffafb5

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-300 is a cool color: its hue is 158° 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
turquoise#40e0d05.4
lightgreen#90ee906.0
mediumspringgreen#00fa9a7.2

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
green-300#7bf1a83.8
teal-300#46ecd54.1
emerald-200#a4f4cf7.8

Code snippets

Tailwind CSS
<div class="bg-emerald-300 text-black">...</div>
<p class="text-emerald-300 border-emerald-300">...</p>
CSS
.element {
  color: var(--color-emerald-300);
  background-color: oklch(84.5% 0.143 164.978);
  border-color: #5ee9b5;
  outline-color: rgb(94 233 181);
}
SwiftUI
import SwiftUI

extension Color {
  static let emerald300 = Color(red: 0.369, green: 0.914, blue: 0.710)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const emerald300 = Color(0xFF5EE9B5);
Android XML
<!-- res/values/colors.xml -->
<color name="emerald_300">#5EE9B5</color>

Frequently asked questions

What is the hex code for Tailwind emerald-300?
In Tailwind CSS v4, emerald-300 is oklch(84.5% 0.143 164.978), which converts to #5EE9B5 (rgb(94, 233, 181)) in sRGB. In Tailwind v3 the same name was #6EE7B7.
What is the difference between emerald-300 in Tailwind v3 and v4?
v3 used the hex #6EE7B7; v4 redefined the palette in OKLCH as oklch(84.5% 0.143 164.978). In v3, emerald-300 was #6EE7B7. The v4 value is ΔE OK 1.3 away, below the point where most people can tell them apart; v4 is more saturated.
How do I use emerald-300 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-emerald-300). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on emerald-300?
White text on emerald-300 has a contrast ratio of 1.52:1, which fails AA even for large text under WCAG 2.2. Black text reaches 13.79:1 and passes both AA and AAA. In APCA terms that is Lc −27.1 for white and Lc 79.8 for black.
Which CSS named color is closest to emerald-300?
The closest is turquoise (#40E0D0) at ΔE OK 5.4, followed by lightgreen and mediumspringgreen.

Last reviewed by Arielton Oberek.