#987B24#987B24
#987B24 is a mid, moderate yellow. Relative luminance 0.210; OKLCH L 59.5% C 0.108 H 89.6°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).
Color values
| HEX | #987B24 |
|---|---|
| RGB | rgb(152, 123, 36) |
| HSL | hsl(45, 62%, 37%) |
| HSV | hsv(45, 76%, 60%) |
| CMYK | cmyk(0%, 19.1%, 76.3%, 40.4%) |
| CIE-LAB | lab(52.92, 2.07, 48.94) |
| CIE-LCH | lch(52.92, 48.99, 87.57°) |
| OKLab | oklab(59.49% 0.0008 0.1077) |
| OKLCH | oklch(59.49% 0.108 89.6) |
| XYZ | xyz(20.3515, 20.9700, 4.6444) |
| Luminance | 0.2097 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke Brown
#947706
ΔE00 2.68
Yellowish Brown
#9B7A01
ΔE00 2.80
Hazel
#8E7618
ΔE00 3.00
Baby Poop
#937C00
ΔE00 3.75
Poo
#8F7303
ΔE00 3.80
Diarrhea
#9F8303
ΔE00 4.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#987B24 #244198
analogous
#984124 #987B24 #7B9824
triadic
#987B24 #24987B #7B2498
tetradic
#987B24 #249841 #244198 #98247B
square
#987B24 #249841 #244198 #98247B
split-complementary
#987B24 #247B98 #412498
monochromatic
#352B0D #675318 #987B24 #C9A330 #D9BA5E
Accessibility & contrast
On white
4.04
#987B24 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.19
#987B24 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #987B24
5.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##987B24 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##987B24 | 1.00 | 4.04 | 5.19 | 5.19 |
| #FFFFFF | 4.04 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.19 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.19 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8A7A16
Deuteranopia (green-blind)
#918229
Tritanopia (blue-blind)
#A5706A
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #987b24; /* rgb */ color: rgb(152, 123, 36); /* oklch */ color: oklch(59.5% 0.108 89.6);
Tailwind
colors: {
custom: {
50: '#baa065',
500: '#987b24',
950: '#000000',
},
}SCSS
$custom: #987b24; $custom-light: #baa065; $custom-dark: #000000;
JSON
{
"hex": "#987b24",
"rgb": {
"r": 152,
"g": 123,
"b": 36
},
"hsl": {
"h": 45,
"s": 61.702,
"l": 36.863
},
"oklch": {
"l": 0.59492,
"c": 0.10774,
"h": 89.6
},
"luminance": 0.20969
}Semantic roles & 50–950 ramp
primary
#987B24
secondary
#5A73BE
accent
#6BE543
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120E06
muted
#817E7A