#408E1F#408E1F
#408E1F is a mid, vivid green. Relative luminance 0.205; OKLCH L 57.5% C 0.162 H 138.4°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).
Color values
| HEX | #408E1F |
|---|---|
| RGB | rgb(64, 142, 31) |
| HSL | hsl(102, 64%, 34%) |
| HSV | hsv(102, 78%, 56%) |
| CMYK | cmyk(54.9%, 0%, 78.2%, 44.3%) |
| CIE-LAB | lab(52.44, -43.91, 48.21) |
| CIE-LCH | lch(52.44, 65.21, 132.33°) |
| OKLab | oklab(57.54% -0.1213 0.1078) |
| OKLCH | oklch(57.54% 0.162 138.4) |
| XYZ | xyz(12.0342, 20.5340, 4.6254) |
| Luminance | 0.2054 (WCAG relative) |
| Temperature | warm |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 3.29
True Green
#089404
ΔE00 3.83
Emerald Green
#028F1E
ΔE00 3.88
Irish Green
#019529
ΔE00 4.64
Grass Green
#3F9B0B
ΔE00 4.75
Sap Green
#5C8B15
ΔE00 4.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#408E1F #6D1F8E
analogous
#788E1F #408E1F #1F8E36
triadic
#408E1F #1F408E #8E1F40
tetradic
#408E1F #1F788E #6D1F8E #8E361F
square
#408E1F #1F788E #6D1F8E #8E361F
split-complementary
#408E1F #361F8E #8E1F78
monochromatic
#132A09 #295C14 #408E1F #57C02A #78D94F
Accessibility & contrast
On white
4.11
#408E1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.11
#408E1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #408E1F
5.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##408E1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##408E1F | 1.00 | 4.11 | 5.11 | 5.11 |
| #FFFFFF | 4.11 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.11 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.11 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#938104
Deuteranopia (green-blind)
#897B2B
Tritanopia (blue-blind)
#398979
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #408e1f; /* rgb */ color: rgb(64, 142, 31); /* oklch */ color: oklch(57.5% 0.162 138.4);
Tailwind
colors: {
custom: {
50: '#7eb064',
500: '#408e1f',
950: '#000000',
},
}SCSS
$custom: #408e1f; $custom-light: #7eb064; $custom-dark: #000000;
JSON
{
"hex": "#408e1f",
"rgb": {
"r": 64,
"g": 142,
"b": 31
},
"hsl": {
"h": 102.162,
"s": 64.162,
"l": 33.922
},
"oklch": {
"l": 0.57541,
"c": 0.16226,
"h": 138.4
},
"luminance": 0.20535
}Semantic roles & 50–950 ramp
primary
#408E1F
secondary
#9B4DBB
accent
#41E7B6
background
#F8FAF6
surface
#EFF5EB
border
#CACFC6
text
#0B1006
muted
#7C7F7A