Skip to content

Tailwind CSS v4 default palette

Tailwind emerald-800: #006045

In Tailwind CSS v4, emerald-800 is defined as --color-emerald-800: oklch(43.2% 0.095 166.913), which is #006045 in hex and rgb(0, 96, 69): a dark, moderately saturated green-cyan. In Tailwind v3, emerald-800 was #065F46.

emerald-800#006045

In OKLCH, emerald-800 has a lightness of 43.2%, chroma 0.095 and hue 166.9°.

This OKLCH value lies outside sRGB. The hex #006045 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.1354 0.3714 0.2776).

In v3, emerald-800 was #065F46. The v4 value is ΔE OK 0.9 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-800

Color codes for emerald-800
Tailwind v4 token--color-emerald-800
OKLCH (source value)oklch(43.2% 0.095 166.913)
HEX#006045
RGBrgb(0, 96, 69)
HSLhsl(163, 100%, 19%)
HWBhwb(163 0% 62%)
CMYK (naive, no ICC profile)cmyk(100%, 0%, 28%, 62%)
Decimal24,645
Display P3color(display-p3 0.1354 0.3714 0.2776)
Tailwind v3 hex#065F46
Utility classesbg-emerald-800, text-emerald-800, border-emerald-800

Tailwind emerald scale

Contrast and accessibility

On emerald-800, white text has a contrast ratio of 7.61:1 and passes AAA at any text size; black text reaches 2.75: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-8002.75:1FailFailFailFail18.1
White text on emerald-8007.61:1PassPassPassPass−90.7
Emerald-800 text on white7.61:1PassPassPassPass85.9
Emerald-800 text on black2.75:1FailFailFailFail−16.1

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #0d684e
  2. 15%
    #267861
  3. 25%
    #408874
  4. 35%
    #599886
  5. 45%
    #73a899
  6. 55%
    #8cb7ab
  7. 65%
    #a6c7be
  8. 75%
    #bfd7d1
  9. 85%
    #d9e7e3
  10. 95%
    #f2f7f6

Shades (mixed with black)

  1. 5%
    #005b42
  2. 15%
    #00523b
  3. 25%
    #004834
  4. 35%
    #003e2d
  5. 45%
    #003526
  6. 55%
    #002b1f
  7. 65%
    #002218
  8. 75%
    #001811
  9. 85%
    #000e0a
  10. 95%
    #000503

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, emerald-800's complementary color is #75385A (close to purple), its analogous colors are #365C24 and #005F62, and its triadic partners are #4D4781 and #7A3D1D. For text on top, white gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#75385a
Analogous−30°, +30°#365c24#005f62
Triadic+120°, +240°#4d4781#7a3d1d
Split-complementary+150°, +210°#653e73#7c383d

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-800 is a cool color: its hue is 163° 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
darkslategray#2f4f4f7.1
darkgreen#0064007.3
darkolivegreen#556b2f9.0

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
teal-800#005f5a3.6
green-800#0166304.1
green-900#0d542b4.6

Code snippets

Tailwind CSS
<div class="bg-emerald-800 text-white">...</div>
<p class="text-emerald-800 border-emerald-800">...</p>
CSS
.element {
  color: var(--color-emerald-800);
  background-color: oklch(43.2% 0.095 166.913);
  border-color: #006045;
  outline-color: rgb(0 96 69);
}
SwiftUI
import SwiftUI

extension Color {
  static let emerald800 = Color(red: 0.000, green: 0.376, blue: 0.271)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const emerald800 = Color(0xFF006045);
Android XML
<!-- res/values/colors.xml -->
<color name="emerald_800">#006045</color>

Frequently asked questions

What is the hex code for Tailwind emerald-800?
In Tailwind CSS v4, emerald-800 is oklch(43.2% 0.095 166.913), which converts to #006045 (rgb(0, 96, 69)) in sRGB after gamut mapping, because the OKLCH value is outside sRGB. In Tailwind v3 the same name was #065F46.
What is the difference between emerald-800 in Tailwind v3 and v4?
v3 used the hex #065F46; v4 redefined the palette in OKLCH as oklch(43.2% 0.095 166.913). In v3, emerald-800 was #065F46. The v4 value is ΔE OK 0.9 away, below the point where most people can tell them apart; v4 is more saturated.
How do I use emerald-800 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-emerald-800). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on emerald-800?
White text on emerald-800 has a contrast ratio of 7.61:1, which passes both AA and AAA under WCAG 2.2. Black text reaches 2.75:1 and fails AA even for large text. In APCA terms that is Lc −90.7 for white and Lc 18.1 for black.
Which CSS named color is closest to emerald-800?
The closest is darkslategray (#2F4F4F) at ΔE OK 7.1, followed by darkgreen and darkolivegreen.

Last reviewed by Arielton Oberek.