Skip to content

Tailwind CSS v4 default palette

Tailwind emerald-700: #007A55

In Tailwind CSS v4, emerald-700 is defined as --color-emerald-700: oklch(50.8% 0.118 165.612), which is #007A55 in hex and rgb(0, 122, 85): a medium-dark, moderately saturated green-cyan. In Tailwind v3, emerald-700 was #047857.

emerald-700#007A55

In OKLCH, emerald-700 has a lightness of 50.8%, chroma 0.118 and hue 165.6°.

This OKLCH value lies outside sRGB. The hex #007A55 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.164 0.4702 0.3435).

In v3, emerald-700 was #047857. 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-700

Color codes for emerald-700
Tailwind v4 token--color-emerald-700
OKLCH (source value)oklch(50.8% 0.118 165.612)
HEX#007A55
RGBrgb(0, 122, 85)
HSLhsl(162, 100%, 24%)
HWBhwb(162 0% 52%)
CMYK (naive, no ICC profile)cmyk(100%, 0%, 30%, 52%)
Decimal31,317
Display P3color(display-p3 0.164 0.4702 0.3435)
Tailwind v3 hex#047857
Utility classesbg-emerald-700, text-emerald-700, border-emerald-700

Tailwind emerald scale

Contrast and accessibility

On emerald-700, white text has a contrast ratio of 5.36:1 and passes AA for normal text; black text reaches 3.91: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-7003.91:1FailPassFailFail27.9
White text on emerald-7005.36:1PassPassFailPass−81.5
Emerald-700 text on white5.36:1PassPassFailPass76.1
Emerald-700 text on black3.91:1FailPassFailFail−25.6

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #0d815e
  2. 15%
    #268e6f
  3. 25%
    #409b80
  4. 35%
    #59a991
  5. 45%
    #73b6a2
  6. 55%
    #8cc3b3
  7. 65%
    #a6d0c4
  8. 75%
    #bfded5
  9. 85%
    #d9ebe6
  10. 95%
    #f2f8f7

Shades (mixed with black)

  1. 5%
    #007451
  2. 15%
    #006848
  3. 25%
    #005c40
  4. 35%
    #004f37
  5. 45%
    #00432f
  6. 55%
    #003726
  7. 65%
    #002b1e
  8. 75%
    #001f15
  9. 85%
    #00120d
  10. 95%
    #000604

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, emerald-700's complementary color is #944674 (close to brown), its analogous colors are #457429 and #007779, and its triadic partners are #6059A5 and #9B4C23. For text on top, white gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#944674
Analogous−30°, +30°#457429#007779
Triadic+120°, +240°#6059a5#9b4c23
Split-complementary+150°, +210°#7f4e93#9d454f

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-700 is a cool color: its hue is 162° 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#2e8b576.4
teal#0080806.8
darkolivegreen#556b2f7.6

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
teal-700#00786f4.4
green-700#0082365.5
green-800#0166306.7

Code snippets

Tailwind CSS
<div class="bg-emerald-700 text-white">...</div>
<p class="text-emerald-700 border-emerald-700">...</p>
CSS
.element {
  color: var(--color-emerald-700);
  background-color: oklch(50.8% 0.118 165.612);
  border-color: #007a55;
  outline-color: rgb(0 122 85);
}
SwiftUI
import SwiftUI

extension Color {
  static let emerald700 = Color(red: 0.000, green: 0.478, blue: 0.333)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const emerald700 = Color(0xFF007A55);
Android XML
<!-- res/values/colors.xml -->
<color name="emerald_700">#007A55</color>

Frequently asked questions

What is the hex code for Tailwind emerald-700?
In Tailwind CSS v4, emerald-700 is oklch(50.8% 0.118 165.612), which converts to #007A55 (rgb(0, 122, 85)) in sRGB after gamut mapping, because the OKLCH value is outside sRGB. In Tailwind v3 the same name was #047857.
What is the difference between emerald-700 in Tailwind v3 and v4?
v3 used the hex #047857; v4 redefined the palette in OKLCH as oklch(50.8% 0.118 165.612). In v3, emerald-700 was #047857. 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-700 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-emerald-700). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on emerald-700?
White text on emerald-700 has a contrast ratio of 5.36:1, which passes AA for normal text but not AAA under WCAG 2.2. Black text reaches 3.91:1 and passes AA only for large text (24 px, or 18.66 px bold, and up). In APCA terms that is Lc −81.5 for white and Lc 27.9 for black.
Which CSS named color is closest to emerald-700?
The closest is seagreen (#2E8B57) at ΔE OK 6.4, followed by teal and darkolivegreen.

Last reviewed by Arielton Oberek.