#87841F#87841F
#87841F is a mid, moderate yellow. Relative luminance 0.218; OKLCH L 59.8% C 0.117 H 107.7°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).
Color values
| HEX | #87841F |
|---|---|
| RGB | rgb(135, 132, 31) |
| HSL | hsl(58, 63%, 33%) |
| HSV | hsv(58, 77%, 53%) |
| CMYK | cmyk(0%, 2.2%, 77%, 47.1%) |
| CIE-LAB | lab(53.76, -10.99, 51.03) |
| CIE-LCH | lch(53.76, 52.20, 102.15°) |
| OKLab | oklab(59.77% -0.0358 0.1119) |
| OKLCH | oklch(59.77% 0.117 107.7) |
| XYZ | xyz(18.4910, 21.7530, 4.5208) |
| Luminance | 0.2175 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 2.55
Shit Green
#758000
ΔE00 4.72
Swamp Green
#748500
ΔE00 5.48
Drab
#828344
ΔE00 6.15
Poop Green
#6F7C00
ΔE00 6.15
Baby Poop
#937C00
ΔE00 6.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#87841F #1F2287
analogous
#87501F #87841F #56871F
triadic
#87841F #1F8784 #841F87
tetradic
#87841F #1F8750 #1F2287 #871F56
square
#87841F #1F8750 #1F2287 #871F56
split-complementary
#87841F #1F5687 #501F87
monochromatic
#232308 #555314 #87841F #B9B52A #D6D24B
Accessibility & contrast
On white
3.92
#87841F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.35
#87841F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #87841F
5.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##87841F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##87841F | 1.00 | 3.92 | 5.35 | 5.35 |
| #FFFFFF | 3.92 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.35 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.35 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#907F08
Deuteranopia (green-blind)
#918227
Tritanopia (blue-blind)
#917B71
Achromatopsia (no color)
#808080
Design tokens & code
CSS
--color: #87841f; /* rgb */ color: rgb(135, 132, 31); /* oklch */ color: oklch(59.8% 0.117 107.7);
Tailwind
colors: {
custom: {
50: '#ada763',
500: '#87841f',
950: '#000000',
},
}SCSS
$custom: #87841f; $custom-light: #ada763; $custom-dark: #000000;
JSON
{
"hex": "#87841f",
"rgb": {
"r": 135,
"g": 132,
"b": 31
},
"hsl": {
"h": 58.269,
"s": 62.651,
"l": 32.549
},
"oklch": {
"l": 0.59765,
"c": 0.11747,
"h": 107.7
},
"luminance": 0.21752
}Semantic roles & 50–950 ramp
primary
#87841F
secondary
#4A4DB8
accent
#47E642
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A