#987E1F#987E1F
#987E1F is a mid, moderate yellow. Relative luminance 0.217; OKLCH L 60.1% C 0.112 H 92.7°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).
Color values
| HEX | #987E1F |
|---|---|
| RGB | rgb(152, 126, 31) |
| HSL | hsl(47, 66%, 36%) |
| HSV | hsv(47, 80%, 60%) |
| CMYK | cmyk(0%, 17.1%, 79.6%, 40.4%) |
| CIE-LAB | lab(53.70, 0.17, 51.57) |
| CIE-LCH | lch(53.70, 51.57, 89.81°) |
| OKLab | oklab(60.1% -0.0052 0.1123) |
| OKLCH | oklch(60.1% 0.112 92.7) |
| XYZ | xyz(20.6583, 21.6973, 4.3960) |
| Luminance | 0.2170 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poop
#937C00
ΔE00 2.51
Yellowish Brown
#9B7A01
ΔE00 2.82
Puke Brown
#947706
ΔE00 2.86
Diarrhea
#9F8303
ΔE00 3.12
Hazel
#8E7618
ΔE00 3.26
Poo
#8F7303
ΔE00 4.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#987E1F #1F3998
analogous
#98411F #987E1F #75981F
triadic
#987E1F #1F987E #7E1F98
tetradic
#987E1F #1F9841 #1F3998 #981F75
square
#987E1F #1F9841 #1F3998 #981F75
split-complementary
#987E1F #1F7598 #411F98
monochromatic
#322A0A #655415 #987E1F #CBA829 #DCBF55
Accessibility & contrast
On white
3.93
#987E1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.34
#987E1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #987E1F
5.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##987E1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##987E1F | 1.00 | 3.93 | 5.34 | 5.34 |
| #FFFFFF | 3.93 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.34 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.34 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8D7C0A
Deuteranopia (green-blind)
#938425
Tritanopia (blue-blind)
#A5736C
Achromatopsia (no color)
#808080
Design tokens & code
CSS
--color: #987e1f; /* rgb */ color: rgb(152, 126, 31); /* oklch */ color: oklch(60.1% 0.112 92.7);
Tailwind
colors: {
custom: {
50: '#baa363',
500: '#987e1f',
950: '#000000',
},
}SCSS
$custom: #987e1f; $custom-light: #baa363; $custom-dark: #000000;
JSON
{
"hex": "#987e1f",
"rgb": {
"r": 152,
"g": 126,
"b": 31
},
"hsl": {
"h": 47.107,
"s": 66.12,
"l": 35.882
},
"oklch": {
"l": 0.60104,
"c": 0.11239,
"h": 92.7
},
"luminance": 0.21696
}Semantic roles & 50–950 ramp
primary
#987E1F
secondary
#536AC0
accent
#63E93F
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#120F06
muted
#817E7A