Tailwind CSS v3 color

Tailwind emerald-700 #047857

Tailwind CSS v3's emerald-700 is #047857. It is a soft green in the green family. In OKLCH it sits at lightness 0.508, chroma 0.105 and hue 165.6°. The nearest CSS named color is seagreen (#2E8B57), ΔE2000 8.6 away.

Relative luminance
0.1415
OKLCH L · C · h
0.508 · 0.105 · 165.6
Best text
White 5.48:1
Hue family
Green

#047857 color codes

HEX
#047857
RGB
rgb(4, 120, 87)
HSL
hsl(163, 94%, 24%)
OKLCH
oklch(0.508 0.105 165.6)
OKLab
oklab(0.508 -0.102 0.026)
CIELAB (D65)
L* 44.44, a* -37.05, b* 10.23
XYZ (D65)
X 8.49, Y 14.15, Z 11.30
CMYK (naive)
cmyk(97%, 0%, 27%, 53%)

CIELAB and XYZ use the D65 white point; CSS lab() uses D50, so paste the OKLCH or HEX value into stylesheets. CMYK here is a plain formula with no press profile.

Legibility

Contrast: is #047857 accessible?

White text on it reaches 5.48:1, passing AA. Black text manages only 3.82:1, enough for large text only.

WCAG 2 gives the same ratio whichever color is the text; APCA does not, so its Lc changes sign and size with polarity.

Open the Contrast System
  • Black text on it

    3.82:1

    • AA fails
    • AA large passes
    • AAA fails
    • APCA Lc +27
  • White text on it

    5.48:1

    • AA passes
    • AA large passes
    • AAA fails
    • APCA Lc −82
  • As text on black

    3.82:1

    • AA fails
    • AA large passes
    • AAA fails
    • APCA Lc −24
  • As text on white

    5.48:1

    • AA passes
    • AA large passes
    • AAA fails
    • APCA Lc +76

Nearest versions that pass 4.5:1

  • For text on white

    #047857 5.48:1

    It already reaches 5.48:1 on white, so no change is needed.

  • For text on black

    #1E8462 4.53:1

    Lightening its OKLCH lightness from 0.51 to 0.55 reaches 4.53:1 on black, keeping the hue.

Checking another pair? Use the Contrast Checker.

Studio

Adjust #047857 live

Move lightness, chroma and hue in OKLCH, or drag on the map. The map is every lightness and chroma at the current hue: sRGB inside the solid area, Display P3 out to the dashed line.

The studio needs JavaScript.

Scale

Shades and tints of #047857

Eleven OKLCH lightness steps at this hue, each with its contrast against white and black. #047857 sits at step 600.

  1. 50#DBFFEE
    White
    1.07
    Black
    19.55
  2. 100#B3FEDE
    White
    1.15
    Black
    18.14
  3. 200#9BEBC9
    White
    1.38
    Black
    15.12
  4. 300#7CD2AF
    White
    1.79
    Black
    11.69
  5. 400#5BB692
    White
    2.45
    Black
    8.55
  6. 500#3B9A77
    White
    3.45
    Black
    6.07
  7. 600This color#047857
    White
    5.48
    Black
    3.82
  8. 700#00684B
    White
    6.81
    Black
    3.08
  9. 800#004C36
    White
    10.06
    Black
    2.08
  10. 900#003222
    White
    14.19
    Black
    1.47
  11. 950#001C11
    White
    17.88
    Black
    1.17

Under each step, white and black text on it; a bold figure passes 4.5:1.

Tailwind CSS v3 emerald scale

The real Tailwind palette, for comparison with the computed ramp above.

  1. 50#ECFDF5
    White
    1.05
    Black
    19.93
  2. 100#D1FAE5
    White
    1.13
    Black
    18.51
  3. 200#A7F3D0
    White
    1.28
    Black
    16.37
  4. 300#6EE7B7
    White
    1.52
    Black
    13.77
  5. 400#34D399
    White
    1.92
    Black
    10.92
  6. 500#10B981
    White
    2.53
    Black
    8.27
  7. 600#059669
    White
    3.76
    Black
    5.57
  8. 700This color#047857
    White
    5.48
    Black
    3.82
  9. 800#065F46
    White
    7.68
    Black
    2.73
  10. 900#064E3B
    White
    9.71
    Black
    2.16
  11. 950#022C22
    White
    15.15
    Black
    1.38

Gamut

How vivid #047857 can get

At its lightness and hue, sRGB reaches OKLCH chroma 0.106; #047857 uses 99% of it. Display P3, which many recent phones and laptops show, reaches 0.145 there: 37% more.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.105
sRGB edge
0.106
Display P3 edge
0.145
Rec. 2020 edge
0.229
Dominant wavelength
510 nm
Excitation purity
21%
Chromaticity
x 0.2501, y 0.4169
  • This color#047857
  • Most vivid in sRGB#007857
  • Most vivid in Display P3oklch(0.508 0.145 165.6)

On a screen without Display P3 the last tile shows the sRGB edge instead.

Use the wider color where screens show it
.accent {
  color: #047857;
}
@media (color-gamut: p3) {
  .accent { color: color(display-p3 0 0.4845 0.3304); }
}

Mixing

Mixing #047857

Each row is the same mix worked out in a different space, with the halfway color at its end. sRGB, which older CSS gradients use, can sag gray or dark in the middle; OKLab keeps the lightness steps even; OKLCH holds chroma and hue as it goes.

White #FFFFFF

  • sRGB50%#82BCAB
  • OKLab50%#90BAA7
  • OKLCH50%#90BAA7

Black #000000

  • sRGB50%#023C2C
  • OKLab50%#012A1C
  • OKLCH50%#012A1C

Its complement #8F4B73

  • sRGB50%#4A6265
  • OKLab50%#656566
  • OKLCH50%#3A67A0
In CSS
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #047857, white);
color: color-mix(in oklch, #047857 50%, white);

In use

#047857 in an interface

A button, a link, a heading, a focused field, an icon and a chart line in this color, on a light page and a dark one. Each check is a WCAG 2 contrast minimum: 1.4.3 for text, 1.4.11 for the rest.

Light page

  • Button labelText, 4.5:15.48:1 Passes
  • Link and body-size textText, 4.5:15.48:1 Passes
  • Large headingLarge text, 3:15.48:1 Passes
  • Icons, borders and focus ringsNon-text, 3:15.48:1 Passes

Dark page

  • Button labelText, 4.5:15.48:1 Passes
  • Link and body-size textText, 4.5:13.41:1 Fails
  • Large headingLarge text, 3:13.41:1 Passes
  • Icons, borders and focus ringsNon-text, 3:13.41:1 Passes

For text on this page, the nearest shade that passes is #298C69 4.50:1

Color vision

How #047857 looks with color blindness

Achromatopsia changes it most, ΔE2000 23.5; tritanopia changes it least, 8.8.

Simulated with Machado et al. (2009) at full severity, in linear light.

Simulate a whole page What each type sees
  • Protanopia

    No working red (long-wavelength) cones

    #756E55 ΔE2000 22.0

    Distinct

    Reads as grayish brown

  • Deuteranopia

    No working green (medium-wavelength) cones

    #696559 ΔE2000 22.4

    Distinct

    Reads as gray

  • Tritanopia

    No working blue (short-wavelength) cones

    #00786F ΔE2000 8.8

    Noticeable

    Reads as muted teal

  • Achromatopsia

    No cone color vision; lightness only

    #696969 ΔE2000 23.5

    Distinct

    Reads as gray

Pairing check

Checked against its complement, #8F4B73. Their lightness contrast is only 1.11:1, so where hue collapses, add a label, icon or pattern.

VisionThe pairΔE2000Verdict
Normal vision#047857 · #8F4B7344.7Stays distinct
Protanopia#756E55 · #505B7425.5Stays distinct
Deuteranopia#696559 · #62667112.7Stays distinct
Tritanopia#00786F · #974A5A50.0Stays distinct
Achromatopsia#696969 · #6262622.6Easily confused

Harmony

Color harmonies for #047857

Its complement is #8F4B73, a soft pink, on the warm side of the wheel.

Hue rotations in OKLCH, mapped into sRGB by trimming chroma so hue and lightness stay put.

Open the Harmony Studio
  • Base#047857
  • Complement#8F4B73

Complementary

Open in Harmony Studio
  • −30°#497332
  • Base#047857
  • +30°#007575
  • Base#047857
  • +120°#615B9F
  • +240°#96502E
  • Base#047857
  • +150°#7C518E
  • +210°#984A51

Split-complementary

Open in Harmony Studio

Code

Design tokens

Ready-to-paste tokens in six formats. Rename them to fit your system.

CSS custom property

:root {
  --color-emerald-700: #047857;
}

Tailwind config

// tailwind.config.js — already built in as emerald-700;
// pin the v3 value explicitly like this:
module.exports = {
  theme: {
    extend: {
      colors: {
        emerald: { 700: '#047857' },
      },
    },
  },
};

Tailwind v4 theme

/* app.css — Tailwind CSS v4 */
@import "tailwindcss";

@theme {
  /* v4 has its own emerald-700; this pins the v3 value. */
  --color-emerald-700: oklch(0.508 0.105 165.6);
}

Design token (W3C DTCG)

{
  "color": {
    "emerald-700": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0.0157, 0.4706, 0.3412],
        "hex": "#047857"
      },
      "$description": "Tailwind CSS v3 emerald-700"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let emerald700 = Color(.sRGB, red: 0.016, green: 0.471, blue: 0.341, opacity: 1)
}

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val Emerald700 = Color(0xFF047857)
}

Matches

The nearest match in each system

The closest CSS name, Tailwind shade, RAL Classic paint and Crayola crayon by ΔE2000; under 2 is hard to tell apart side by side. RAL and Crayola values approximate physical colors.

Tools

Open #047857 in the tools

Each opens over this page. More colors live in the Color Library, and every color page is listed on the hub.