#406F2F#406F2F
#406F2F is a mid, moderate green. Relative luminance 0.127; OKLCH L 49.2% C 0.108 H 138.1°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).
Color values
| HEX | #406F2F |
|---|---|
| RGB | rgb(64, 111, 47) |
| HSL | hsl(104, 41%, 31%) |
| HSV | hsv(104, 58%, 44%) |
| CMYK | cmyk(42.3%, 0%, 57.7%, 56.5%) |
| CIE-LAB | lab(42.25, -29.15, 30.30) |
| CIE-LCH | lch(42.25, 42.05, 133.90°) |
| OKLab | oklab(49.23% -0.0802 0.0719) |
| OKLCH | oklch(49.23% 0.108 138.1) |
| XYZ | xyz(8.3116, 12.6636, 4.6951) |
| Luminance | 0.1266 (WCAG relative) |
| Temperature | warm |
| Family | green |
Closest named colors
Darkolivegreen
#556B2F
ΔE00 5.35
Darkish Green
#287C37
ΔE00 5.82
Camo Green
#526525
ΔE00 6.73
Tree Green
#2A7E19
ΔE00 7.16
Forest Green
#2D5A27
ΔE00 7.48
Darkgreen
#006400
ΔE00 7.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#406F2F #5E2F6F
analogous
#606F2F #406F2F #2F6F3E
triadic
#406F2F #2F406F #6F2F40
tetradic
#406F2F #2F606F #5E2F6F #6F3E2F
square
#406F2F #2F606F #5E2F6F #6F3E2F
split-complementary
#406F2F #3E2F6F #6F2F60
monochromatic
#0E190B #27441D #406F2F #599A41 #76BB5E
Accessibility & contrast
On white
5.94
#406F2F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.53
#406F2F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #406F2F
5.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##406F2F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##406F2F | 1.00 | 5.94 | 3.53 | 5.94 |
| #FFFFFF | 5.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#726629
Deuteranopia (green-blind)
#6C6234
Tritanopia (blue-blind)
#3D6B61
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #406f2f; /* rgb */ color: rgb(64, 111, 47); /* oklch */ color: oklch(49.2% 0.108 138.1);
Tailwind
colors: {
custom: {
50: '#789969',
500: '#406f2f',
950: '#000000',
},
}SCSS
$custom: #406f2f; $custom-light: #789969; $custom-dark: #000000;
JSON
{
"hex": "#406f2f",
"rgb": {
"r": 64,
"g": 111,
"b": 47
},
"hsl": {
"h": 104.063,
"s": 40.506,
"l": 30.98
},
"oklch": {
"l": 0.49226,
"c": 0.10767,
"h": 138.1
},
"luminance": 0.12664
}Semantic roles & 50–950 ramp
primary
#406F2F
secondary
#8D59A0
accent
#57D0B0
background
#F7F9F6
surface
#EDF2EB
border
#C8CCC6
text
#090E06
muted
#7B7E7A