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.
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.
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.
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.
- 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.
.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
/* 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.
| Vision | The pair | ΔE2000 | Verdict |
|---|---|---|---|
| Normal vision | #047857 · #8F4B73 | 44.7 | Stays distinct |
| Protanopia | #756E55 · #505B74 | 25.5 | Stays distinct |
| Deuteranopia | #696559 · #626671 | 12.7 | Stays distinct |
| Tritanopia | #00786F · #974A5A | 50.0 | Stays distinct |
| Achromatopsia | #696969 · #626262 | 2.6 | Easily 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
Analogous
Open in Harmony Studio- Base#047857
- +120°#615B9F
- +240°#96502E
Triadic
Open in Harmony Studio- Base#047857
- +150°#7C518E
- +210°#984A51
Split-complementary
Open in Harmony StudioCode
Design tokens
Ready-to-paste tokens in six formats. Rename them to fit your system.
:root {
--color-emerald-700: #047857;
}
// tailwind.config.js — already built in as emerald-700;
// pin the v3 value explicitly like this:
module.exports = {
theme: {
extend: {
colors: {
emerald: { 700: '#047857' },
},
},
},
};
/* 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);
}
{
"color": {
"emerald-700": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.0157, 0.4706, 0.3412],
"hex": "#047857"
},
"$description": "Tailwind CSS v3 emerald-700"
}
}
}
import SwiftUI
enum Palette {
static let emerald700 = Color(.sRGB, red: 0.016, green: 0.471, blue: 0.341, opacity: 1)
}
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.
- Color InspectorEvery format, its names, contrast and color vision in one panel.
- Contrast SystemBlack and white text on this color, with fixes in both directions.
- Harmony StudioPalettes built from this color, walked to a contrast target if you ask.
- Color Space ConverterThe same color in 34 notations, with its gamut headroom.
- Color Name FinderThe nearest of 1,055 color names by ΔE2000.