#987D1F#987D1F
#987D1F is a mid, moderate yellow. Relative luminance 0.214; OKLCH L 59.9% C 0.112 H 91.9°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).
Color values
| HEX | #987D1F |
|---|---|
| RGB | rgb(152, 125, 31) |
| HSL | hsl(47, 66%, 36%) |
| HSV | hsv(47, 80%, 60%) |
| CMYK | cmyk(0%, 17.8%, 79.6%, 40.4%) |
| CIE-LAB | lab(53.43, 0.73, 51.32) |
| CIE-LCH | lch(53.43, 51.32, 89.18°) |
| OKLab | oklab(59.89% -0.0036 0.1117) |
| OKLCH | oklch(59.89% 0.112 91.9) |
| XYZ | xyz(20.5310, 21.4428, 4.3536) |
| Luminance | 0.2144 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Yellowish Brown
#9B7A01
ΔE00 2.56
Puke Brown
#947706
ΔE00 2.57
Baby Poop
#937C00
ΔE00 2.68
Hazel
#8E7618
ΔE00 3.05
Diarrhea
#9F8303
ΔE00 3.38
Poo
#8F7303
ΔE00 3.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#987D1F #1F3A98
analogous
#98411F #987D1F #76981F
triadic
#987D1F #1F987D #7D1F98
tetradic
#987D1F #1F9841 #1F3A98 #981F76
square
#987D1F #1F9841 #1F3A98 #981F76
split-complementary
#987D1F #1F7698 #411F98
monochromatic
#32290A #655315 #987D1F #CBA729 #DCBE55
Accessibility & contrast
On white
3.97
#987D1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.29
#987D1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #987D1F
5.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##987D1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##987D1F | 1.00 | 3.97 | 5.29 | 5.29 |
| #FFFFFF | 3.97 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.29 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.29 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8C7B0B
Deuteranopia (green-blind)
#928325
Tritanopia (blue-blind)
#A5726B
Achromatopsia (no color)
#808080
Design tokens & code
CSS
--color: #987d1f; /* rgb */ color: rgb(152, 125, 31); /* oklch */ color: oklch(59.9% 0.112 91.9);
Tailwind
colors: {
custom: {
50: '#baa263',
500: '#987d1f',
950: '#000000',
},
}SCSS
$custom: #987d1f; $custom-light: #baa263; $custom-dark: #000000;
JSON
{
"hex": "#987d1f",
"rgb": {
"r": 152,
"g": 125,
"b": 31
},
"hsl": {
"h": 46.612,
"s": 66.12,
"l": 35.882
},
"oklch": {
"l": 0.59888,
"c": 0.11179,
"h": 91.9
},
"luminance": 0.21442
}Semantic roles & 50–950 ramp
primary
#987D1F
secondary
#536BC0
accent
#65E93F
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#120F06
muted
#817E7A