#7C841C#7C841C
#7C841C 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 | #7C841C |
|---|---|
| RGB | rgb(124, 132, 28) |
| HSL | hsl(65, 65%, 31%) |
| HSV | hsv(65, 79%, 52%) |
| CMYK | cmyk(6.1%, 0%, 78.8%, 48.2%) |
| CIE-LAB | lab(52.81, -16.13, 50.83) |
| CIE-LCH | lch(52.81, 53.33, 107.61°) |
| OKLab | oklab(58.77% -0.0497 0.1113) |
| OKLCH | oklch(58.77% 0.122 114.1) |
| XYZ | xyz(16.7736, 20.8718, 4.2434) |
| Luminance | 0.2087 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 2.36
Swamp Green
#748500
ΔE00 2.58
Olive
#808000
ΔE00 3.23
Poop Green
#6F7C00
ΔE00 3.81
Murky Green
#6C7A0E
ΔE00 4.61
Olive Green
#677A04
ΔE00 5.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7C841C #241C84
analogous
#84581C #7C841C #48841C
triadic
#7C841C #1C7C84 #841C7C
tetradic
#7C841C #1C8458 #241C84 #841C48
square
#7C841C #1C8458 #241C84 #841C48
split-complementary
#7C841C #1C4884 #581C84
monochromatic
#1D1F07 #4D5211 #7C841C #ABB627 #CCD743
Accessibility & contrast
On white
4.06
#7C841C on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.17
#7C841C on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7C841C
5.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7C841C | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7C841C | 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)
#8E7D01
Deuteranopia (green-blind)
#8E7F25
Tritanopia (blue-blind)
#857C71
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #7c841c; /* rgb */ color: rgb(124, 132, 28); /* oklch */ color: oklch(58.8% 0.122 114.1);
Tailwind
colors: {
custom: {
50: '#a5a762',
500: '#7c841c',
950: '#000000',
},
}SCSS
$custom: #7c841c; $custom-light: #a5a762; $custom-dark: #000000;
JSON
{
"hex": "#7c841c",
"rgb": {
"r": 124,
"g": 132,
"b": 28
},
"hsl": {
"h": 64.615,
"s": 65,
"l": 31.373
},
"oklch": {
"l": 0.58766,
"c": 0.12193,
"h": 114.1
},
"luminance": 0.20871
}Semantic roles & 50–950 ramp
primary
#7C841C
secondary
#4D45B7
accent
#40E84D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A