#987A1F#987A1F
#987A1F is a mid, moderate yellow. Relative luminance 0.207; OKLCH L 59.2% C 0.110 H 89.4°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).
Color values
| HEX | #987A1F |
|---|---|
| RGB | rgb(152, 122, 31) |
| HSL | hsl(45, 66%, 36%) |
| HSV | hsv(45, 80%, 60%) |
| CMYK | cmyk(0%, 19.7%, 79.6%, 40.4%) |
| CIE-LAB | lab(52.61, 2.42, 50.57) |
| CIE-LCH | lch(52.61, 50.63, 87.26°) |
| OKLab | oklab(59.24% 0.0012 0.1101) |
| OKLCH | oklch(59.24% 0.11 89.4) |
| XYZ | xyz(20.1570, 20.6947, 4.2289) |
| Luminance | 0.2069 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke Brown
#947706
ΔE00 2.18
Yellowish Brown
#9B7A01
ΔE00 2.29
Hazel
#8E7618
ΔE00 2.84
Poo
#8F7303
ΔE00 3.35
Baby Poop
#937C00
ΔE00 3.57
Diarrhea
#9F8303
ΔE00 4.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#987A1F #1F3D98
analogous
#983D1F #987A1F #79981F
triadic
#987A1F #1F987A #7A1F98
tetradic
#987A1F #1F983D #1F3D98 #981F79
square
#987A1F #1F983D #1F3D98 #981F79
split-complementary
#987A1F #1F7998 #3D1F98
monochromatic
#32280A #655115 #987A1F #CBA329 #DCBB55
Accessibility & contrast
On white
4.09
#987A1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.14
#987A1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #987A1F
5.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##987A1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##987A1F | 1.00 | 4.09 | 5.14 | 5.14 |
| #FFFFFF | 4.09 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.14 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.14 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#89790C
Deuteranopia (green-blind)
#908124
Tritanopia (blue-blind)
#A56F69
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #987a1f; /* rgb */ color: rgb(152, 122, 31); /* oklch */ color: oklch(59.2% 0.110 89.4);
Tailwind
colors: {
custom: {
50: '#baa063',
500: '#987a1f',
950: '#000000',
},
}SCSS
$custom: #987a1f; $custom-light: #baa063; $custom-dark: #000000;
JSON
{
"hex": "#987a1f",
"rgb": {
"r": 152,
"g": 122,
"b": 31
},
"hsl": {
"h": 45.124,
"s": 66.12,
"l": 35.882
},
"oklch": {
"l": 0.59243,
"c": 0.11014,
"h": 89.4
},
"luminance": 0.20693
}Semantic roles & 50–950 ramp
primary
#987A1F
secondary
#536EC0
accent
#69E93F
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#120E06
muted
#817E7A