#987C24#987C24
#987C24 is a mid, moderate yellow. Relative luminance 0.212; OKLCH L 59.7% C 0.108 H 90.4°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).
Color values
| HEX | #987C24 |
|---|---|
| RGB | rgb(152, 124, 36) |
| HSL | hsl(46, 62%, 37%) |
| HSV | hsv(46, 76%, 60%) |
| CMYK | cmyk(0%, 18.4%, 76.3%, 40.4%) |
| CIE-LAB | lab(53.19, 1.51, 49.20) |
| CIE-LCH | lch(53.19, 49.23, 88.24°) |
| OKLab | oklab(59.71% -0.0008 0.1083) |
| OKLCH | oklch(59.71% 0.108 90.4) |
| XYZ | xyz(20.4762, 21.2194, 4.6860) |
| Luminance | 0.2122 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke Brown
#947706
ΔE00 2.76
Yellowish Brown
#9B7A01
ΔE00 2.84
Hazel
#8E7618
ΔE00 3.03
Baby Poop
#937C00
ΔE00 3.45
Poo
#8F7303
ΔE00 3.96
Diarrhea
#9F8303
ΔE00 4.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#987C24 #244098
analogous
#984224 #987C24 #7A9824
triadic
#987C24 #24987C #7C2498
tetradic
#987C24 #249842 #244098 #98247A
square
#987C24 #249842 #244098 #98247A
split-complementary
#987C24 #247A98 #422498
monochromatic
#352B0D #675418 #987C24 #C9A430 #D9BB5E
Accessibility & contrast
On white
4.00
#987C24 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.24
#987C24 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #987C24
5.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##987C24 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##987C24 | 1.00 | 4.00 | 5.24 | 5.24 |
| #FFFFFF | 4.00 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.24 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.24 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8B7A15
Deuteranopia (green-blind)
#918229
Tritanopia (blue-blind)
#A5716B
Achromatopsia (no color)
#7F7F7F
Design tokens & code
CSS
--color: #987c24; /* rgb */ color: rgb(152, 124, 36); /* oklch */ color: oklch(59.7% 0.108 90.4);
Tailwind
colors: {
custom: {
50: '#baa165',
500: '#987c24',
950: '#000000',
},
}SCSS
$custom: #987c24; $custom-light: #baa165; $custom-dark: #000000;
JSON
{
"hex": "#987c24",
"rgb": {
"r": 152,
"g": 124,
"b": 36
},
"hsl": {
"h": 45.517,
"s": 61.702,
"l": 36.863
},
"oklch": {
"l": 0.59706,
"c": 0.10829,
"h": 90.4
},
"luminance": 0.21218
}Semantic roles & 50–950 ramp
primary
#987C24
secondary
#5A72BE
accent
#6AE543
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120E06
muted
#817E7A