#7E841B#7E841B
#7E841B is a mid, vivid yellow. Relative luminance 0.210; OKLCH L 58.9% C 0.122 H 113.0°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).
Color values
| HEX | #7E841B |
|---|---|
| RGB | rgb(126, 132, 27) |
| HSL | hsl(63, 66%, 31%) |
| HSV | hsv(63, 80%, 52%) |
| CMYK | cmyk(4.5%, 0%, 79.5%, 48.2%) |
| CIE-LAB | lab(52.97, -15.27, 51.36) |
| CIE-LCH | lch(52.97, 53.58, 106.56°) |
| OKLab | oklab(58.93% -0.0475 0.1122) |
| OKLCH | oklch(58.93% 0.122 113) |
| XYZ | xyz(17.0538, 21.0177, 4.1952) |
| Luminance | 0.2102 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 2.56
Olive
#808000
ΔE00 2.75
Swamp Green
#748500
ΔE00 2.97
Poop Green
#6F7C00
ΔE00 4.10
Murky Green
#6C7A0E
ΔE00 4.97
Olive Green
#677A04
ΔE00 5.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E841B #211B84
analogous
#84551B #7E841B #49841B
triadic
#7E841B #1B7E84 #841B7E
tetradic
#7E841B #1B8455 #211B84 #841B49
square
#7E841B #1B8455 #211B84 #841B49
split-complementary
#7E841B #1B4984 #551B84
monochromatic
#1D1E06 #4D5111 #7E841B #AEB725 #D0D841
Accessibility & contrast
On white
4.04
#7E841B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.20
#7E841B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7E841B
5.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E841B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7E841B | 1.00 | 4.04 | 5.20 | 5.20 |
| #FFFFFF | 4.04 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.20 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.20 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8E7D00
Deuteranopia (green-blind)
#8F8024
Tritanopia (blue-blind)
#877C71
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #7e841b; /* rgb */ color: rgb(126, 132, 27); /* oklch */ color: oklch(58.9% 0.122 113.0);
Tailwind
colors: {
custom: {
50: '#a7a761',
500: '#7e841b',
950: '#000000',
},
}SCSS
$custom: #7e841b; $custom-light: #a7a761; $custom-dark: #000000;
JSON
{
"hex": "#7e841b",
"rgb": {
"r": 126,
"g": 132,
"b": 27
},
"hsl": {
"h": 63.429,
"s": 66.038,
"l": 31.176
},
"oklch": {
"l": 0.58933,
"c": 0.12185,
"h": 113
},
"luminance": 0.21017
}Semantic roles & 50–950 ramp
primary
#7E841B
secondary
#4A43B7
accent
#3FE949
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A