#8C841F#8C841F
#8C841F is a mid, moderate yellow. Relative luminance 0.222; OKLCH L 60.2% C 0.117 H 104.7°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).
Color values
| HEX | #8C841F |
|---|---|
| RGB | rgb(140, 132, 31) |
| HSL | hsl(56, 64%, 34%) |
| HSV | hsv(56, 78%, 55%) |
| CMYK | cmyk(0%, 5.7%, 77.9%, 45.1%) |
| CIE-LAB | lab(54.22, -8.69, 51.61) |
| CIE-LCH | lch(54.22, 52.34, 99.56°) |
| OKLab | oklab(60.23% -0.0296 0.1129) |
| OKLCH | oklch(60.23% 0.117 104.7) |
| XYZ | xyz(19.3146, 22.1777, 4.5594) |
| Luminance | 0.2218 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 3.45
Baby Poop
#937C00
ΔE00 5.34
Shit Green
#758000
ΔE00 6.13
Diarrhea
#9F8303
ΔE00 6.55
Hazel
#8E7618
ΔE00 6.69
Drab
#828344
ΔE00 6.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8C841F #1F278C
analogous
#8C4D1F #8C841F #5D8C1F
triadic
#8C841F #1F8C84 #841F8C
tetradic
#8C841F #1F8C4D #1F278C #8C1F5D
square
#8C841F #1F8C4D #1F278C #8C1F5D
split-complementary
#8C841F #1F5D8C #4D1F8C
monochromatic
#282609 #5A5514 #8C841F #BEB32A #D8CE4E
Accessibility & contrast
On white
3.86
#8C841F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.44
#8C841F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8C841F
5.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8C841F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8C841F | 1.00 | 3.86 | 5.44 | 5.44 |
| #FFFFFF | 3.86 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.44 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.44 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#907F08
Deuteranopia (green-blind)
#938427
Tritanopia (blue-blind)
#977A71
Achromatopsia (no color)
#828282
Design tokens & code
CSS
--color: #8c841f; /* rgb */ color: rgb(140, 132, 31); /* oklch */ color: oklch(60.2% 0.117 104.7);
Tailwind
colors: {
custom: {
50: '#b1a763',
500: '#8c841f',
950: '#000000',
},
}SCSS
$custom: #8c841f; $custom-light: #b1a763; $custom-dark: #000000;
JSON
{
"hex": "#8c841f",
"rgb": {
"r": 140,
"g": 132,
"b": 31
},
"hsl": {
"h": 55.596,
"s": 63.743,
"l": 33.529
},
"oklch": {
"l": 0.60233,
"c": 0.11674,
"h": 104.7
},
"luminance": 0.22177
}Semantic roles & 50–950 ramp
primary
#8C841F
secondary
#4C54BB
accent
#4DE741
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A