#987F24#987F24
#987F24 is a mid, moderate yellow. Relative luminance 0.220; OKLCH L 60.4% C 0.110 H 92.9°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).
Color values
| HEX | #987F24 |
|---|---|
| RGB | rgb(152, 127, 36) |
| HSL | hsl(47, 62%, 37%) |
| HSV | hsv(47, 76%, 60%) |
| CMYK | cmyk(0%, 16.4%, 76.3%, 40.4%) |
| CIE-LAB | lab(54.01, -0.17, 49.99) |
| CIE-LCH | lch(54.01, 49.99, 90.20°) |
| OKLab | oklab(60.35% -0.0057 0.11) |
| OKLCH | oklch(60.35% 0.11 92.9) |
| XYZ | xyz(20.8579, 21.9827, 4.8132) |
| Luminance | 0.2198 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poop
#937C00
ΔE00 2.92
Diarrhea
#9F8303
ΔE00 3.36
Yellowish Brown
#9B7A01
ΔE00 3.40
Puke Brown
#947706
ΔE00 3.41
Hazel
#8E7618
ΔE00 3.54
Poo
#8F7303
ΔE00 4.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#987F24 #243D98
analogous
#984524 #987F24 #779824
triadic
#987F24 #24987F #7F2498
tetradic
#987F24 #249845 #243D98 #982477
square
#987F24 #249845 #243D98 #982477
split-complementary
#987F24 #247798 #452498
monochromatic
#352C0D #675618 #987F24 #C9A830 #D9BE5E
Accessibility & contrast
On white
3.89
#987F24 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.40
#987F24 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #987F24
5.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##987F24 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##987F24 | 1.00 | 3.89 | 5.40 | 5.40 |
| #FFFFFF | 3.89 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.40 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.40 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8D7D14
Deuteranopia (green-blind)
#948429
Tritanopia (blue-blind)
#A5746D
Achromatopsia (no color)
#818181
Design tokens & code
CSS
--color: #987f24; /* rgb */ color: rgb(152, 127, 36); /* oklch */ color: oklch(60.4% 0.110 92.9);
Tailwind
colors: {
custom: {
50: '#baa366',
500: '#987f24',
950: '#000000',
},
}SCSS
$custom: #987f24; $custom-light: #baa366; $custom-dark: #000000;
JSON
{
"hex": "#987f24",
"rgb": {
"r": 152,
"g": 127,
"b": 36
},
"hsl": {
"h": 47.069,
"s": 61.702,
"l": 36.863
},
"oklch": {
"l": 0.60354,
"c": 0.11011,
"h": 92.9
},
"luminance": 0.21982
}Semantic roles & 50–950 ramp
primary
#987F24
secondary
#5A70BE
accent
#66E543
background
#FBFAF6
surface
#F7F3EB
border
#D0CDC6
text
#120F06
muted
#817F7A