#7C841B#7C841B
#7C841B is a mid, vivid yellow. Relative luminance 0.209; OKLCH L 58.8% C 0.122 H 114.1°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).
Color values
| HEX | #7C841B |
|---|---|
| RGB | rgb(124, 132, 27) |
| HSL | hsl(65, 66%, 31%) |
| HSV | hsv(65, 80%, 52%) |
| CMYK | cmyk(6.1%, 0%, 79.5%, 48.2%) |
| CIE-LAB | lab(52.80, -16.18, 51.15) |
| CIE-LCH | lch(52.80, 53.65, 107.55°) |
| OKLab | oklab(58.76% -0.0499 0.1118) |
| OKLCH | oklch(58.76% 0.122 114.1) |
| XYZ | xyz(16.7618, 20.8671, 4.1815) |
| Luminance | 0.2087 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 2.30
Swamp Green
#748500
ΔE00 2.53
Olive
#808000
ΔE00 3.16
Poop Green
#6F7C00
ΔE00 3.79
Murky Green
#6C7A0E
ΔE00 4.62
Olive Green
#677A04
ΔE00 5.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7C841B #231B84
analogous
#84571B #7C841B #47841B
triadic
#7C841B #1B7C84 #841B7C
tetradic
#7C841B #1B8457 #231B84 #841B47
square
#7C841B #1B8457 #231B84 #841B47
split-complementary
#7C841B #1B4784 #571B84
monochromatic
#1D1E06 #4C5111 #7C841B #ACB725 #CDD841
Accessibility & contrast
On white
4.06
#7C841B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.17
#7C841B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7C841B
5.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7C841B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7C841B | 1.00 | 4.06 | 5.17 | 5.17 |
| #FFFFFF | 4.06 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.17 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.17 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8E7D00
Deuteranopia (green-blind)
#8E7F25
Tritanopia (blue-blind)
#857C71
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #7c841b; /* rgb */ color: rgb(124, 132, 27); /* oklch */ color: oklch(58.8% 0.122 114.1);
Tailwind
colors: {
custom: {
50: '#a5a761',
500: '#7c841b',
950: '#000000',
},
}SCSS
$custom: #7c841b; $custom-light: #a5a761; $custom-dark: #000000;
JSON
{
"hex": "#7c841b",
"rgb": {
"r": 124,
"g": 132,
"b": 27
},
"hsl": {
"h": 64.571,
"s": 66.038,
"l": 31.176
},
"oklch": {
"l": 0.5876,
"c": 0.12247,
"h": 114.1
},
"luminance": 0.20867
}Semantic roles & 50–950 ramp
primary
#7C841B
secondary
#4C43B7
accent
#3FE94C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A