#7E8A40#7E8A40
#7E8A40 is a mid, moderate yellow. Relative luminance 0.230; OKLCH L 60.7% C 0.100 H 117.1°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).
Color values
| HEX | #7E8A40 |
|---|---|
| RGB | rgb(126, 138, 64) |
| HSL | hsl(70, 37%, 40%) |
| HSV | hsv(70, 54%, 54%) |
| CMYK | cmyk(8.7%, 0%, 53.6%, 45.9%) |
| CIE-LAB | lab(55.05, -15.89, 37.69) |
| CIE-LCH | lch(55.05, 40.90, 112.86°) |
| OKLab | oklab(60.7% -0.0455 0.0888) |
| OKLCH | oklch(60.7% 0.1 117.1) |
| XYZ | xyz(18.6183, 22.9829, 8.3048) |
| Luminance | 0.2298 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Camo
#7F8F4E
ΔE00 2.89
Khaki Green
#728639
ΔE00 2.93
Drab
#828344
ΔE00 3.88
Swamp
#698339
ΔE00 5.15
Olivedrab
#6B8E23
ΔE00 6.04
Moss Green
#8A9A5B
ΔE00 6.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E8A40 #4C408A
analogous
#8A7140 #7E8A40 #598A40
triadic
#7E8A40 #407E8A #8A407E
tetradic
#7E8A40 #408A71 #4C408A #8A4059
square
#7E8A40 #408A71 #4C408A #8A4059
split-complementary
#7E8A40 #40598A #71408A
monochromatic
#323619 #58602D #7E8A40 #A2B156 #B9C480
Accessibility & contrast
On white
3.75
#7E8A40 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.60
#7E8A40 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7E8A40
5.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E8A40 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7E8A40 | 1.00 | 3.75 | 5.60 | 5.60 |
| #FFFFFF | 3.75 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.60 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.60 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#928339
Deuteranopia (green-blind)
#918444
Tritanopia (blue-blind)
#858379
Achromatopsia (no color)
#848484
Design tokens & code
CSS
--color: #7e8a40; /* rgb */ color: rgb(126, 138, 64); /* oklch */ color: oklch(60.7% 0.100 117.1);
Tailwind
colors: {
custom: {
50: '#a5ac77',
500: '#7e8a40',
950: '#000000',
},
}SCSS
$custom: #7e8a40; $custom-light: #a5ac77; $custom-dark: #000000;
JSON
{
"hex": "#7e8a40",
"rgb": {
"r": 126,
"g": 138,
"b": 64
},
"hsl": {
"h": 69.73,
"s": 36.634,
"l": 39.608
},
"oklch": {
"l": 0.60703,
"c": 0.09977,
"h": 117.1
},
"luminance": 0.22983
}Semantic roles & 50–950 ramp
primary
#7E8A40
secondary
#8077AF
accent
#5BCD6E
background
#FAFAF7
surface
#F4F4ED
border
#CECEC8
text
#0F1009
muted
#7F7F7B