#407B2A#407B2A
#407B2A is a mid, vivid green. Relative luminance 0.154; OKLCH L 52.4% C 0.130 H 138.3°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).
Color values
| HEX | #407B2A |
|---|---|
| RGB | rgb(64, 123, 42) |
| HSL | hsl(104, 49%, 32%) |
| HSV | hsv(104, 66%, 48%) |
| CMYK | cmyk(48%, 0%, 65.9%, 51.8%) |
| CIE-LAB | lab(46.21, -35.16, 37.29) |
| CIE-LCH | lch(46.21, 51.26, 133.31°) |
| OKLab | oklab(52.45% -0.0969 0.0864) |
| OKLCH | oklch(52.45% 0.13 138.3) |
| XYZ | xyz(9.6149, 15.4224, 4.6602) |
| Luminance | 0.1542 (WCAG relative) |
| Temperature | warm |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 3.22
Darkish Green
#287C37
ΔE00 4.37
Dark Grass Green
#388004
ΔE00 4.44
Green
#008000
ΔE00 5.61
Forestgreen (CSS)
#228B22
ΔE00 6.46
Avocado
#568203
ΔE00 7.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#407B2A #652A7B
analogous
#687B2A #407B2A #2A7B3D
triadic
#407B2A #2A407B #7B2A40
tetradic
#407B2A #2A687B #652A7B #7B3D2A
square
#407B2A #2A687B #652A7B #7B3D2A
split-complementary
#407B2A #3D2A7B #7B2A68
monochromatic
#11200B #284D1A #407B2A #58A93A #77C659
Accessibility & contrast
On white
5.14
#407B2A on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.08
#407B2A on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #407B2A
5.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##407B2A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##407B2A | 1.00 | 5.14 | 4.08 | 5.14 |
| #FFFFFF | 5.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.08 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7F7120
Deuteranopia (green-blind)
#776C31
Tritanopia (blue-blind)
#3C776A
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #407b2a; /* rgb */ color: rgb(64, 123, 42); /* oklch */ color: oklch(52.4% 0.130 138.3);
Tailwind
colors: {
custom: {
50: '#7aa267',
500: '#407b2a',
950: '#000000',
},
}SCSS
$custom: #407b2a; $custom-light: #7aa267; $custom-dark: #000000;
JSON
{
"hex": "#407b2a",
"rgb": {
"r": 64,
"g": 123,
"b": 42
},
"hsl": {
"h": 103.704,
"s": 49.091,
"l": 32.353
},
"oklch": {
"l": 0.52446,
"c": 0.12981,
"h": 138.3
},
"luminance": 0.15423
}Semantic roles & 50–950 ramp
primary
#407B2A
secondary
#9455AC
accent
#4FD9B3
background
#F7FAF6
surface
#EEF3EB
border
#C9CDC6
text
#0A0F06
muted
#7C7F7A