#408C1F#408C1F
#408C1F is a mid, vivid green. Relative luminance 0.199; OKLCH L 57.0% C 0.160 H 138.2°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).
Color values
| HEX | #408C1F |
|---|---|
| RGB | rgb(64, 140, 31) |
| HSL | hsl(102, 64%, 34%) |
| HSV | hsv(102, 78%, 55%) |
| CMYK | cmyk(54.3%, 0%, 77.9%, 45.1%) |
| CIE-LAB | lab(51.77, -43.13, 47.57) |
| CIE-LCH | lch(51.77, 64.21, 132.20°) |
| OKLab | oklab(57% -0.1192 0.1064) |
| OKLCH | oklch(57% 0.16 138.2) |
| XYZ | xyz(11.7393, 19.9442, 4.5271) |
| Luminance | 0.1994 (WCAG relative) |
| Temperature | warm |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 3.07
Emerald Green
#028F1E
ΔE00 3.96
True Green
#089404
ΔE00 4.25
Dark Grass Green
#388004
ΔE00 4.60
Sap Green
#5C8B15
ΔE00 4.89
Irish Green
#019529
ΔE00 4.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#408C1F #6B1F8C
analogous
#768C1F #408C1F #1F8C34
triadic
#408C1F #1F408C #8C1F40
tetradic
#408C1F #1F768C #6B1F8C #8C341F
square
#408C1F #1F768C #6B1F8C #8C341F
split-complementary
#408C1F #341F8C #8C1F76
monochromatic
#122809 #295A14 #408C1F #57BE2A #77D84E
Accessibility & contrast
On white
4.21
#408C1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.99
#408C1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #408C1F
4.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##408C1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##408C1F | 1.00 | 4.21 | 4.99 | 4.99 |
| #FFFFFF | 4.21 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.99 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.99 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#917F05
Deuteranopia (green-blind)
#87792B
Tritanopia (blue-blind)
#3A8777
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #408c1f; /* rgb */ color: rgb(64, 140, 31); /* oklch */ color: oklch(57.0% 0.160 138.2);
Tailwind
colors: {
custom: {
50: '#7dae63',
500: '#408c1f',
950: '#000000',
},
}SCSS
$custom: #408c1f; $custom-light: #7dae63; $custom-dark: #000000;
JSON
{
"hex": "#408c1f",
"rgb": {
"r": 64,
"g": 140,
"b": 31
},
"hsl": {
"h": 101.835,
"s": 63.743,
"l": 33.529
},
"oklch": {
"l": 0.56996,
"c": 0.15979,
"h": 138.2
},
"luminance": 0.19945
}Semantic roles & 50–950 ramp
primary
#408C1F
secondary
#994CBB
accent
#41E7B5
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0A1006
muted
#7C7F7A