#87871B#87871B
#87871B is a mid, vivid yellow. Relative luminance 0.226; OKLCH L 60.4% C 0.123 H 109.6°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).
Color values
| HEX | #87871B |
|---|---|
| RGB | rgb(135, 135, 27) |
| HSL | hsl(60, 67%, 32%) |
| HSV | hsv(60, 80%, 53%) |
| CMYK | cmyk(0%, 0%, 80%, 47.1%) |
| CIE-LAB | lab(54.61, -12.77, 53.13) |
| CIE-LCH | lch(54.61, 54.64, 103.52°) |
| OKLab | oklab(60.44% -0.0411 0.1156) |
| OKLCH | oklch(60.44% 0.123 109.6) |
| XYZ | xyz(18.8542, 22.5586, 4.3978) |
| Luminance | 0.2256 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 2.87
Shit Green
#758000
ΔE00 4.56
Swamp Green
#748500
ΔE00 4.84
Baby Shit Green
#889717
ΔE00 6.01
Baby Poop Green
#8F9805
ΔE00 6.12
Poop Green
#6F7C00
ΔE00 6.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#87871B #1B1B87
analogous
#87511B #87871B #51871B
triadic
#87871B #1B8787 #871B87
tetradic
#87871B #1B8751 #1B1B87 #871B51
square
#87871B #1B8751 #1B1B87 #871B51
split-complementary
#87871B #1B5187 #511B87
monochromatic
#212107 #545411 #87871B #BABA25 #D9D943
Accessibility & contrast
On white
3.81
#87871B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.51
#87871B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #87871B
5.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##87871B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##87871B | 1.00 | 3.81 | 5.51 | 5.51 |
| #FFFFFF | 3.81 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.51 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.51 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#938100
Deuteranopia (green-blind)
#948425
Tritanopia (blue-blind)
#917E73
Achromatopsia (no color)
#838383
Design tokens & code
CSS
--color: #87871b; /* rgb */ color: rgb(135, 135, 27); /* oklch */ color: oklch(60.4% 0.123 109.6);
Tailwind
colors: {
custom: {
50: '#ada962',
500: '#87871b',
950: '#000000',
},
}SCSS
$custom: #87871b; $custom-light: #ada962; $custom-dark: #000000;
JSON
{
"hex": "#87871b",
"rgb": {
"r": 135,
"g": 135,
"b": 27
},
"hsl": {
"h": 60,
"s": 66.667,
"l": 31.765
},
"oklch": {
"l": 0.60437,
"c": 0.12268,
"h": 109.6
},
"luminance": 0.22558
}Semantic roles & 50–950 ramp
primary
#87871B
secondary
#4444BA
accent
#3EEA3E
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A