#40871F#40871F
#40871F is a mid, vivid green. Relative luminance 0.185; OKLCH L 55.6% C 0.154 H 137.8°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).
Color values
| HEX | #40871F |
|---|---|
| RGB | rgb(64, 135, 31) |
| HSL | hsl(101, 63%, 33%) |
| HSV | hsv(101, 77%, 53%) |
| CMYK | cmyk(52.6%, 0%, 77%, 47.1%) |
| CIE-LAB | lab(50.12, -41.13, 45.94) |
| CIE-LCH | lch(50.12, 61.67, 131.84°) |
| OKLab | oklab(55.63% -0.1138 0.103) |
| OKLCH | oklch(55.63% 0.154 137.8) |
| XYZ | xyz(11.0253, 18.5160, 4.2890) |
| Luminance | 0.1852 (WCAG relative) |
| Temperature | warm |
| Family | green |
Closest named colors
Dark Grass Green
#388004
ΔE00 3.11
Forestgreen (CSS)
#228B22
ΔE00 3.24
Tree Green
#2A7E19
ΔE00 4.10
Emerald Green
#028F1E
ΔE00 4.66
Green
#008000
ΔE00 5.06
Sap Green
#5C8B15
ΔE00 5.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#40871F #661F87
analogous
#74871F #40871F #1F8732
triadic
#40871F #1F4087 #871F40
tetradic
#40871F #1F7487 #661F87 #87321F
square
#40871F #1F7487 #661F87 #87321F
split-complementary
#40871F #321F87 #871F74
monochromatic
#112308 #285514 #40871F #58B92A #77D64B
Accessibility & contrast
On white
4.46
#40871F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.70
#40871F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #40871F
4.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##40871F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##40871F | 1.00 | 4.46 | 4.70 | 4.70 |
| #FFFFFF | 4.46 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.70 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.70 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8B7B08
Deuteranopia (green-blind)
#82752A
Tritanopia (blue-blind)
#3B8273
Achromatopsia (no color)
#777777
Design tokens & code
CSS
--color: #40871f; /* rgb */ color: rgb(64, 135, 31); /* oklch */ color: oklch(55.6% 0.154 137.8);
Tailwind
colors: {
custom: {
50: '#7cab63',
500: '#40871f',
950: '#000000',
},
}SCSS
$custom: #40871f; $custom-light: #7cab63; $custom-dark: #000000;
JSON
{
"hex": "#40871f",
"rgb": {
"r": 64,
"g": 135,
"b": 31
},
"hsl": {
"h": 100.962,
"s": 62.651,
"l": 32.549
},
"oklch": {
"l": 0.5563,
"c": 0.15354,
"h": 137.8
},
"luminance": 0.18517
}Semantic roles & 50–950 ramp
primary
#40871F
secondary
#954AB8
accent
#42E6B2
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A1006
muted
#7C7F7A