#87841C#87841C
#87841C is a mid, moderate yellow. Relative luminance 0.217; OKLCH L 59.7% C 0.119 H 107.8°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).
Color values
| HEX | #87841C |
|---|---|
| RGB | rgb(135, 132, 28) |
| HSL | hsl(58, 66%, 32%) |
| HSV | hsv(58, 79%, 53%) |
| CMYK | cmyk(0%, 2.2%, 79.3%, 47.1%) |
| CIE-LAB | lab(53.75, -11.11, 52.03) |
| CIE-LCH | lch(53.75, 53.20, 102.06°) |
| OKLab | oklab(59.75% -0.0364 0.1134) |
| OKLCH | oklch(59.75% 0.119 107.8) |
| XYZ | xyz(18.4533, 21.7379, 4.3222) |
| Luminance | 0.2174 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 2.36
Shit Green
#758000
ΔE00 4.66
Swamp Green
#748500
ΔE00 5.43
Poop Green
#6F7C00
ΔE00 6.13
Drab
#828344
ΔE00 6.44
Baby Poop
#937C00
ΔE00 6.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#87841C #1C1F87
analogous
#874F1C #87841C #55871C
triadic
#87841C #1C8784 #841C87
tetradic
#87841C #1C874F #1C1F87 #871C55
square
#87841C #1C874F #1C1F87 #871C55
split-complementary
#87841C #1C5587 #4F1C87
monochromatic
#222107 #545211 #87841C #BAB627 #D8D445
Accessibility & contrast
On white
3.93
#87841C on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.35
#87841C on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #87841C
5.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##87841C | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##87841C | 1.00 | 3.93 | 5.35 | 5.35 |
| #FFFFFF | 3.93 | 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)
#907E01
Deuteranopia (green-blind)
#918225
Tritanopia (blue-blind)
#917B71
Achromatopsia (no color)
#808080
Design tokens & code
CSS
--color: #87841c; /* rgb */ color: rgb(135, 132, 28); /* oklch */ color: oklch(59.7% 0.119 107.8);
Tailwind
colors: {
custom: {
50: '#ada762',
500: '#87841c',
950: '#000000',
},
}SCSS
$custom: #87841c; $custom-light: #ada762; $custom-dark: #000000;
JSON
{
"hex": "#87841c",
"rgb": {
"r": 135,
"g": 132,
"b": 28
},
"hsl": {
"h": 58.318,
"s": 65.644,
"l": 31.961
},
"oklch": {
"l": 0.59747,
"c": 0.11913,
"h": 107.8
},
"luminance": 0.21737
}Semantic roles & 50–950 ramp
primary
#87841C
secondary
#4548BA
accent
#44E93F
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A