#8D871F#8D871F
#8D871F is a mid, moderate yellow. Relative luminance 0.231; OKLCH L 61.0% C 0.119 H 106.0°. Best body text is #000000 at 5.62:1 contrast (WCAG AA passes).
Color values
| HEX | #8D871F |
|---|---|
| RGB | rgb(141, 135, 31) |
| HSL | hsl(57, 64%, 34%) |
| HSV | hsv(57, 78%, 55%) |
| CMYK | cmyk(0%, 4.3%, 78%, 44.7%) |
| CIE-LAB | lab(55.17, -9.86, 52.52) |
| CIE-LCH | lch(55.17, 53.44, 100.64°) |
| OKLab | oklab(61.01% -0.0329 0.1148) |
| OKLCH | oklch(61.01% 0.119 106) |
| XYZ | xyz(19.8966, 23.0903, 4.7049) |
| Luminance | 0.2309 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 3.71
Shit Green
#758000
ΔE00 6.12
Baby Poop
#937C00
ΔE00 6.20
Swamp Green
#748500
ΔE00 6.63
Baby Poop Green
#8F9805
ΔE00 6.65
Pea Soup
#929901
ΔE00 6.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8D871F #1F258D
analogous
#8D501F #8D871F #5C8D1F
triadic
#8D871F #1F8D87 #871F8D
tetradic
#8D871F #1F8D50 #1F258D #8D1F5C
square
#8D871F #1F8D50 #1F258D #8D1F5C
split-complementary
#8D871F #1F5C8D #501F8D
monochromatic
#292709 #5B5714 #8D871F #BFB72A #D8D14E
Accessibility & contrast
On white
3.74
#8D871F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.62
#8D871F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8D871F
5.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8D871F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8D871F | 1.00 | 3.74 | 5.62 | 5.62 |
| #FFFFFF | 3.74 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.62 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.62 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#938206
Deuteranopia (green-blind)
#968627
Tritanopia (blue-blind)
#987D73
Achromatopsia (no color)
#848484
Design tokens & code
CSS
--color: #8d871f; /* rgb */ color: rgb(141, 135, 31); /* oklch */ color: oklch(61.0% 0.119 106.0);
Tailwind
colors: {
custom: {
50: '#b2a964',
500: '#8d871f',
950: '#000000',
},
}SCSS
$custom: #8d871f; $custom-light: #b2a964; $custom-dark: #000000;
JSON
{
"hex": "#8d871f",
"rgb": {
"r": 141,
"g": 135,
"b": 31
},
"hsl": {
"h": 56.727,
"s": 63.953,
"l": 33.725
},
"oklch": {
"l": 0.61011,
"c": 0.11944,
"h": 106
},
"luminance": 0.2309
}Semantic roles & 50–950 ramp
primary
#8D871F
secondary
#4D53BB
accent
#4AE741
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A