#407A2A#407A2A
#407A2A is a mid, vivid green. Relative luminance 0.152; OKLCH L 52.2% C 0.128 H 138.2°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).
Color values
| HEX | #407A2A |
|---|---|
| RGB | rgb(64, 122, 42) |
| HSL | hsl(104, 49%, 32%) |
| HSV | hsv(104, 66%, 48%) |
| CMYK | cmyk(47.5%, 0%, 65.6%, 52.2%) |
| CIE-LAB | lab(45.87, -34.73, 36.93) |
| CIE-LCH | lch(45.87, 50.69, 133.24°) |
| OKLab | oklab(52.17% -0.0957 0.0856) |
| OKLCH | oklch(52.17% 0.128 138.2) |
| XYZ | xyz(9.4915, 15.1756, 4.6191) |
| Luminance | 0.1518 (WCAG relative) |
| Temperature | warm |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 3.42
Darkish Green
#287C37
ΔE00 4.37
Dark Grass Green
#388004
ΔE00 4.67
Green
#008000
ΔE00 5.79
Forestgreen (CSS)
#228B22
ΔE00 6.80
Avocado
#568203
ΔE00 7.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#407A2A #642A7A
analogous
#687A2A #407A2A #2A7A3C
triadic
#407A2A #2A407A #7A2A40
tetradic
#407A2A #2A687A #642A7A #7A3C2A
square
#407A2A #2A687A #642A7A #7A3C2A
split-complementary
#407A2A #3C2A7A #7A2A68
monochromatic
#101F0B #284C1A #407A2A #58A83A #77C659
Accessibility & contrast
On white
5.20
#407A2A on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.04
#407A2A on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #407A2A
5.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##407A2A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##407A2A | 1.00 | 5.20 | 4.04 | 5.20 |
| #FFFFFF | 5.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.04 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7E7020
Deuteranopia (green-blind)
#766B31
Tritanopia (blue-blind)
#3C7669
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #407a2a; /* rgb */ color: rgb(64, 122, 42); /* oklch */ color: oklch(52.2% 0.128 138.2);
Tailwind
colors: {
custom: {
50: '#7aa167',
500: '#407a2a',
950: '#000000',
},
}SCSS
$custom: #407a2a; $custom-light: #7aa167; $custom-dark: #000000;
JSON
{
"hex": "#407a2a",
"rgb": {
"r": 64,
"g": 122,
"b": 42
},
"hsl": {
"h": 103.5,
"s": 48.78,
"l": 32.157
},
"oklch": {
"l": 0.52172,
"c": 0.1284,
"h": 138.2
},
"luminance": 0.15176
}Semantic roles & 50–950 ramp
primary
#407A2A
secondary
#9355AB
accent
#4FD8B3
background
#F7F9F6
surface
#EEF2EB
border
#C9CCC6
text
#0A0F06
muted
#7C7E7A