#987E24#987E24
#987E24 is a mid, moderate yellow. Relative luminance 0.217; OKLCH L 60.1% C 0.109 H 92.1°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).
Color values
| HEX | #987E24 |
|---|---|
| RGB | rgb(152, 126, 36) |
| HSL | hsl(47, 62%, 37%) |
| HSV | hsv(47, 76%, 60%) |
| CMYK | cmyk(0%, 17.1%, 76.3%, 40.4%) |
| CIE-LAB | lab(53.73, 0.39, 49.73) |
| CIE-LCH | lch(53.73, 49.73, 89.56°) |
| OKLab | oklab(60.14% -0.0041 0.1094) |
| OKLCH | oklch(60.14% 0.109 92.1) |
| XYZ | xyz(20.7293, 21.7257, 4.7704) |
| Luminance | 0.2172 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poop
#937C00
ΔE00 3.02
Puke Brown
#947706
ΔE00 3.13
Yellowish Brown
#9B7A01
ΔE00 3.15
Hazel
#8E7618
ΔE00 3.31
Diarrhea
#9F8303
ΔE00 3.57
Poo
#8F7303
ΔE00 4.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#987E24 #243E98
analogous
#984424 #987E24 #789824
triadic
#987E24 #24987E #7E2498
tetradic
#987E24 #249844 #243E98 #982478
square
#987E24 #249844 #243E98 #982478
split-complementary
#987E24 #247898 #442498
monochromatic
#352C0D #675518 #987E24 #C9A730 #D9BD5E
Accessibility & contrast
On white
3.93
#987E24 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.34
#987E24 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #987E24
5.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##987E24 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##987E24 | 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)
#8C7C15
Deuteranopia (green-blind)
#938429
Tritanopia (blue-blind)
#A5736C
Achromatopsia (no color)
#808080
Design tokens & code
CSS
--color: #987e24; /* rgb */ color: rgb(152, 126, 36); /* oklch */ color: oklch(60.1% 0.109 92.1);
Tailwind
colors: {
custom: {
50: '#baa366',
500: '#987e24',
950: '#000000',
},
}SCSS
$custom: #987e24; $custom-light: #baa366; $custom-dark: #000000;
JSON
{
"hex": "#987e24",
"rgb": {
"r": 152,
"g": 126,
"b": 36
},
"hsl": {
"h": 46.552,
"s": 61.702,
"l": 36.863
},
"oklch": {
"l": 0.60137,
"c": 0.10948,
"h": 92.1
},
"luminance": 0.21724
}Semantic roles & 50–950 ramp
primary
#987E24
secondary
#5A70BE
accent
#67E543
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120F06
muted
#817E7A