#8C841B#8C841B
#8C841B is a mid, moderate yellow. Relative luminance 0.222; OKLCH L 60.2% C 0.119 H 104.8°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).
Color values
| HEX | #8C841B |
|---|---|
| RGB | rgb(140, 132, 27) |
| HSL | hsl(56, 68%, 33%) |
| HSV | hsv(56, 81%, 55%) |
| CMYK | cmyk(0%, 5.7%, 80.7%, 45.1%) |
| CIE-LAB | lab(54.19, -8.85, 52.92) |
| CIE-LCH | lch(54.19, 53.66, 99.50°) |
| OKLab | oklab(60.21% -0.0304 0.1149) |
| OKLCH | oklch(60.21% 0.119 104.8) |
| XYZ | xyz(19.2652, 22.1579, 4.2988) |
| Luminance | 0.2216 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 3.29
Baby Poop
#937C00
ΔE00 5.23
Shit Green
#758000
ΔE00 6.09
Diarrhea
#9F8303
ΔE00 6.44
Hazel
#8E7618
ΔE00 6.73
Swamp Green
#748500
ΔE00 6.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8C841B #1B238C
analogous
#8C4B1B #8C841B #5C8C1B
triadic
#8C841B #1B8C84 #841B8C
tetradic
#8C841B #1B8C4B #1B238C #8C1B5C
square
#8C841B #1B8C4B #1B238C #8C1B5C
split-complementary
#8C841B #1B5C8C #4B1B8C
monochromatic
#252307 #595411 #8C841B #BFB425 #DBD146
Accessibility & contrast
On white
3.87
#8C841B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.43
#8C841B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8C841B
5.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8C841B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8C841B | 1.00 | 3.87 | 5.43 | 5.43 |
| #FFFFFF | 3.87 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.43 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.43 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#907F00
Deuteranopia (green-blind)
#938424
Tritanopia (blue-blind)
#977A71
Achromatopsia (no color)
#828282
Design tokens & code
CSS
--color: #8c841b; /* rgb */ color: rgb(140, 132, 27); /* oklch */ color: oklch(60.2% 0.119 104.8);
Tailwind
colors: {
custom: {
50: '#b1a762',
500: '#8c841b',
950: '#000000',
},
}SCSS
$custom: #8c841b; $custom-light: #b1a762; $custom-dark: #000000;
JSON
{
"hex": "#8c841b",
"rgb": {
"r": 140,
"g": 132,
"b": 27
},
"hsl": {
"h": 55.752,
"s": 67.665,
"l": 32.745
},
"oklch": {
"l": 0.60209,
"c": 0.11888,
"h": 104.8
},
"luminance": 0.22157
}Semantic roles & 50–950 ramp
primary
#8C841B
secondary
#464EBD
accent
#4AEB3D
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F05
muted
#807F7A