#7A8A40#7A8A40
#7A8A40 is a mid, moderate yellow-green. Relative luminance 0.227; OKLCH L 60.4% C 0.101 H 119.6°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).
Color values
| HEX | #7A8A40 |
|---|---|
| RGB | rgb(122, 138, 64) |
| HSL | hsl(73, 37%, 40%) |
| HSV | hsv(73, 54%, 54%) |
| CMYK | cmyk(11.6%, 0%, 53.6%, 45.9%) |
| CIE-LAB | lab(54.75, -17.60, 37.25) |
| CIE-LCH | lch(54.75, 41.20, 115.28°) |
| OKLab | oklab(60.38% -0.05 0.0879) |
| OKLCH | oklch(60.38% 0.101 119.6) |
| XYZ | xyz(18.0401, 22.6848, 8.2777) |
| Luminance | 0.2268 (WCAG relative) |
| Temperature | warm |
| Family | yellow-green |
Closest named colors
Khaki Green
#728639
ΔE00 2.09
Camo
#7F8F4E
ΔE00 2.66
Swamp
#698339
ΔE00 4.21
Drab
#828344
ΔE00 4.66
Moss Green (survey)
#658B38
ΔE00 5.06
Olivedrab
#6B8E23
ΔE00 5.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A8A40 #50408A
analogous
#8A7540 #7A8A40 #558A40
triadic
#7A8A40 #407A8A #8A407A
tetradic
#7A8A40 #408A75 #50408A #8A4055
square
#7A8A40 #408A75 #50408A #8A4055
split-complementary
#7A8A40 #40558A #75408A
monochromatic
#303619 #55602D #7A8A40 #9DB156 #B5C480
Accessibility & contrast
On white
3.79
#7A8A40 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.54
#7A8A40 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7A8A40
5.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A8A40 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7A8A40 | 1.00 | 3.79 | 5.54 | 5.54 |
| #FFFFFF | 3.79 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.54 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.54 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#928339
Deuteranopia (green-blind)
#908344
Tritanopia (blue-blind)
#808479
Achromatopsia (no color)
#838383
Design tokens & code
CSS
--color: #7a8a40; /* rgb */ color: rgb(122, 138, 64); /* oklch */ color: oklch(60.4% 0.101 119.6);
Tailwind
colors: {
custom: {
50: '#a2ac77',
500: '#7a8a40',
950: '#000000',
},
}SCSS
$custom: #7a8a40; $custom-light: #a2ac77; $custom-dark: #000000;
JSON
{
"hex": "#7a8a40",
"rgb": {
"r": 122,
"g": 138,
"b": 64
},
"hsl": {
"h": 72.973,
"s": 36.634,
"l": 39.608
},
"oklch": {
"l": 0.60378,
"c": 0.10115,
"h": 119.6
},
"luminance": 0.22685
}Semantic roles & 50–950 ramp
primary
#7A8A40
secondary
#8377AF
accent
#5BCD74
background
#FAFAF7
surface
#F4F4ED
border
#CECEC8
text
#0F1009
muted
#7F7F7B