#7D841B#7D841B
#7D841B is a mid, vivid yellow. Relative luminance 0.209; OKLCH L 58.8% C 0.122 H 113.5°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).
Color values
| HEX | #7D841B |
|---|---|
| RGB | rgb(125, 132, 27) |
| HSL | hsl(64, 66%, 31%) |
| HSV | hsv(64, 80%, 52%) |
| CMYK | cmyk(5.3%, 0%, 79.5%, 48.2%) |
| CIE-LAB | lab(52.89, -15.72, 51.26) |
| CIE-LCH | lch(52.89, 53.61, 107.05°) |
| OKLab | oklab(58.85% -0.0487 0.112) |
| OKLCH | oklch(58.85% 0.122 113.5) |
| XYZ | xyz(16.9071, 20.9420, 4.1883) |
| Luminance | 0.2094 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 2.41
Swamp Green
#748500
ΔE00 2.75
Olive
#808000
ΔE00 2.95
Poop Green
#6F7C00
ΔE00 3.94
Murky Green
#6C7A0E
ΔE00 4.79
Olive Green
#677A04
ΔE00 5.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7D841B #221B84
analogous
#84561B #7D841B #48841B
triadic
#7D841B #1B7D84 #841B7D
tetradic
#7D841B #1B8456 #221B84 #841B48
square
#7D841B #1B8456 #221B84 #841B48
split-complementary
#7D841B #1B4884 #561B84
monochromatic
#1D1E06 #4D5111 #7D841B #ADB725 #CED841
Accessibility & contrast
On white
4.05
#7D841B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.19
#7D841B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7D841B
5.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7D841B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7D841B | 1.00 | 4.05 | 5.19 | 5.19 |
| #FFFFFF | 4.05 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.19 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.19 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8E7D00
Deuteranopia (green-blind)
#8E7F25
Tritanopia (blue-blind)
#867C71
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #7d841b; /* rgb */ color: rgb(125, 132, 27); /* oklch */ color: oklch(58.8% 0.122 113.5);
Tailwind
colors: {
custom: {
50: '#a6a761',
500: '#7d841b',
950: '#000000',
},
}SCSS
$custom: #7d841b; $custom-light: #a6a761; $custom-dark: #000000;
JSON
{
"hex": "#7d841b",
"rgb": {
"r": 125,
"g": 132,
"b": 27
},
"hsl": {
"h": 64,
"s": 66.038,
"l": 31.176
},
"oklch": {
"l": 0.58846,
"c": 0.12216,
"h": 113.5
},
"luminance": 0.20942
}Semantic roles & 50–950 ramp
primary
#7D841B
secondary
#4B43B7
accent
#3FE94A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A