#7A841B#7A841B
#7A841B is a mid, vivid yellow. Relative luminance 0.207; OKLCH L 58.6% C 0.123 H 115.2°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).
Color values
| HEX | #7A841B |
|---|---|
| RGB | rgb(122, 132, 27) |
| HSL | hsl(66, 66%, 31%) |
| HSV | hsv(66, 80%, 52%) |
| CMYK | cmyk(7.6%, 0%, 79.5%, 48.2%) |
| CIE-LAB | lab(52.64, -17.08, 50.94) |
| CIE-LCH | lch(52.64, 53.73, 108.54°) |
| OKLab | oklab(58.59% -0.0523 0.1115) |
| OKLCH | oklch(58.59% 0.123 115.2) |
| XYZ | xyz(16.4756, 20.7195, 4.1681) |
| Luminance | 0.2072 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Swamp Green
#748500
ΔE00 2.17
Shit Green
#758000
ΔE00 2.17
Poop Green
#6F7C00
ΔE00 3.54
Olive
#808000
ΔE00 3.61
Murky Green
#6C7A0E
ΔE00 4.31
Olive Green
#677A04
ΔE00 5.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A841B #251B84
analogous
#84591B #7A841B #45841B
triadic
#7A841B #1B7A84 #841B7A
tetradic
#7A841B #1B8459 #251B84 #841B45
square
#7A841B #1B8459 #251B84 #841B45
split-complementary
#7A841B #1B4584 #591B84
monochromatic
#1C1E06 #4B5111 #7A841B #A9B725 #CAD841
Accessibility & contrast
On white
4.08
#7A841B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.14
#7A841B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7A841B
5.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A841B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7A841B | 1.00 | 4.08 | 5.14 | 5.14 |
| #FFFFFF | 4.08 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.14 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.14 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8E7D00
Deuteranopia (green-blind)
#8D7E25
Tritanopia (blue-blind)
#827C71
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #7a841b; /* rgb */ color: rgb(122, 132, 27); /* oklch */ color: oklch(58.6% 0.123 115.2);
Tailwind
colors: {
custom: {
50: '#a4a761',
500: '#7a841b',
950: '#000000',
},
}SCSS
$custom: #7a841b; $custom-light: #a4a761; $custom-dark: #000000;
JSON
{
"hex": "#7a841b",
"rgb": {
"r": 122,
"g": 132,
"b": 27
},
"hsl": {
"h": 65.714,
"s": 66.038,
"l": 31.176
},
"oklch": {
"l": 0.58589,
"c": 0.12313,
"h": 115.2
},
"luminance": 0.20719
}Semantic roles & 50–950 ramp
primary
#7A841B
secondary
#4E43B7
accent
#3FE94F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A