#7C841F#7C841F
#7C841F is a mid, vivid yellow. Relative luminance 0.209; OKLCH L 58.8% C 0.120 H 114.1°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).
Color values
| HEX | #7C841F |
|---|---|
| RGB | rgb(124, 132, 31) |
| HSL | hsl(65, 62%, 32%) |
| HSV | hsv(65, 77%, 52%) |
| CMYK | cmyk(6.1%, 0%, 76.5%, 48.2%) |
| CIE-LAB | lab(52.83, -15.99, 49.81) |
| CIE-LCH | lch(52.83, 52.32, 107.80°) |
| OKLab | oklab(58.78% -0.0491 0.1097) |
| OKLCH | oklch(58.78% 0.12 114.1) |
| XYZ | xyz(16.8113, 20.8869, 4.4420) |
| Luminance | 0.2089 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 2.56
Swamp Green
#748500
ΔE00 2.75
Olive
#808000
ΔE00 3.44
Poop Green
#6F7C00
ΔE00 3.90
Murky Green
#6C7A0E
ΔE00 4.61
Khaki Green
#728639
ΔE00 5.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7C841F #271F84
analogous
#84591F #7C841F #4A841F
triadic
#7C841F #1F7C84 #841F7C
tetradic
#7C841F #1F8459 #271F84 #841F4A
square
#7C841F #1F8459 #271F84 #841F4A
split-complementary
#7C841F #1F4A84 #591F84
monochromatic
#1F2108 #4D5213 #7C841F #ABB62B #C9D449
Accessibility & contrast
On white
4.06
#7C841F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.18
#7C841F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7C841F
5.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7C841F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7C841F | 1.00 | 4.06 | 5.18 | 5.18 |
| #FFFFFF | 4.06 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.18 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.18 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8E7D08
Deuteranopia (green-blind)
#8E7F28
Tritanopia (blue-blind)
#857C71
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #7c841f; /* rgb */ color: rgb(124, 132, 31); /* oklch */ color: oklch(58.8% 0.120 114.1);
Tailwind
colors: {
custom: {
50: '#a5a763',
500: '#7c841f',
950: '#000000',
},
}SCSS
$custom: #7c841f; $custom-light: #a5a763; $custom-dark: #000000;
JSON
{
"hex": "#7c841f",
"rgb": {
"r": 124,
"g": 132,
"b": 31
},
"hsl": {
"h": 64.752,
"s": 61.963,
"l": 31.961
},
"oklch": {
"l": 0.58784,
"c": 0.12022,
"h": 114.1
},
"luminance": 0.20887
}Semantic roles & 50–950 ramp
primary
#7C841F
secondary
#5148B7
accent
#43E550
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A