#7E841F#7E841F
#7E841F is a mid, moderate yellow. Relative luminance 0.210; OKLCH L 59.0% C 0.120 H 113.0°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).
Color values
| HEX | #7E841F |
|---|---|
| RGB | rgb(126, 132, 31) |
| HSL | hsl(64, 62%, 32%) |
| HSV | hsv(64, 77%, 52%) |
| CMYK | cmyk(4.5%, 0%, 76.5%, 48.2%) |
| CIE-LAB | lab(52.99, -15.09, 50.03) |
| CIE-LCH | lch(52.99, 52.26, 106.79°) |
| OKLab | oklab(58.96% -0.0467 0.1101) |
| OKLCH | oklch(58.96% 0.12 113) |
| XYZ | xyz(17.1033, 21.0375, 4.4557) |
| Luminance | 0.2104 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 2.77
Olive
#808000
ΔE00 3.05
Swamp Green
#748500
ΔE00 3.15
Poop Green
#6F7C00
ΔE00 4.19
Murky Green
#6C7A0E
ΔE00 4.96
Drab
#828344
ΔE00 5.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E841F #251F84
analogous
#84571F #7E841F #4C841F
triadic
#7E841F #1F7E84 #841F7E
tetradic
#7E841F #1F8457 #251F84 #841F4C
square
#7E841F #1F8457 #251F84 #841F4C
split-complementary
#7E841F #1F4C84 #571F84
monochromatic
#1F2108 #4F5213 #7E841F #ADB62B #CCD449
Accessibility & contrast
On white
4.03
#7E841F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.21
#7E841F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7E841F
5.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E841F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7E841F | 1.00 | 4.03 | 5.21 | 5.21 |
| #FFFFFF | 4.03 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.21 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.21 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8E7D08
Deuteranopia (green-blind)
#8E8027
Tritanopia (blue-blind)
#877C71
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #7e841f; /* rgb */ color: rgb(126, 132, 31); /* oklch */ color: oklch(59.0% 0.120 113.0);
Tailwind
colors: {
custom: {
50: '#a6a763',
500: '#7e841f',
950: '#000000',
},
}SCSS
$custom: #7e841f; $custom-light: #a6a763; $custom-dark: #000000;
JSON
{
"hex": "#7e841f",
"rgb": {
"r": 126,
"g": 132,
"b": 31
},
"hsl": {
"h": 63.564,
"s": 61.963,
"l": 31.961
},
"oklch": {
"l": 0.58957,
"c": 0.11961,
"h": 113
},
"luminance": 0.21037
}Semantic roles & 50–950 ramp
primary
#7E841F
secondary
#4F48B7
accent
#43E54C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A