#8C871B#8C871B
#8C871B is a mid, vivid yellow. Relative luminance 0.230; OKLCH L 60.9% C 0.122 H 106.7°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).
Color values
| HEX | #8C871B |
|---|---|
| RGB | rgb(140, 135, 27) |
| HSL | hsl(57, 68%, 33%) |
| HSV | hsv(57, 81%, 55%) |
| CMYK | cmyk(0%, 3.6%, 80.7%, 45.1%) |
| CIE-LAB | lab(55.06, -10.48, 53.69) |
| CIE-LCH | lch(55.06, 54.70, 101.05°) |
| OKLab | oklab(60.9% -0.035 0.1166) |
| OKLCH | oklch(60.9% 0.122 106.7) |
| XYZ | xyz(19.6779, 22.9833, 4.4364) |
| Luminance | 0.2298 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 3.41
Shit Green
#758000
ΔE00 5.82
Swamp Green
#748500
ΔE00 6.30
Baby Poop
#937C00
ΔE00 6.36
Baby Poop Green
#8F9805
ΔE00 6.43
Pea Soup
#929901
ΔE00 6.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8C871B #1B208C
analogous
#8C4E1B #8C871B #598C1B
triadic
#8C871B #1B8C87 #871B8C
tetradic
#8C871B #1B8C4E #1B208C #8C1B59
square
#8C871B #1B8C4E #1B208C #8C1B59
split-complementary
#8C871B #1B598C #4E1B8C
monochromatic
#252407 #595611 #8C871B #BFB825 #DBD546
Accessibility & contrast
On white
3.75
#8C871B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.60
#8C871B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8C871B
5.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8C871B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8C871B | 1.00 | 3.75 | 5.60 | 5.60 |
| #FFFFFF | 3.75 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.60 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.60 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#938200
Deuteranopia (green-blind)
#958624
Tritanopia (blue-blind)
#977D73
Achromatopsia (no color)
#848484
Design tokens & code
CSS
--color: #8c871b; /* rgb */ color: rgb(140, 135, 27); /* oklch */ color: oklch(60.9% 0.122 106.7);
Tailwind
colors: {
custom: {
50: '#b1a962',
500: '#8c871b',
950: '#000000',
},
}SCSS
$custom: #8c871b; $custom-light: #b1a962; $custom-dark: #000000;
JSON
{
"hex": "#8c871b",
"rgb": {
"r": 140,
"g": 135,
"b": 27
},
"hsl": {
"h": 57.345,
"s": 67.665,
"l": 32.745
},
"oklch": {
"l": 0.60896,
"c": 0.12171,
"h": 106.7
},
"luminance": 0.22983
}Semantic roles & 50–950 ramp
primary
#8C871B
secondary
#464BBD
accent
#45EB3D
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A