#987B20#987B20
#987B20 is a mid, moderate yellow. Relative luminance 0.209; OKLCH L 59.5% C 0.110 H 90.1°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).
Color values
| HEX | #987B20 |
|---|---|
| RGB | rgb(152, 123, 32) |
| HSL | hsl(46, 65%, 36%) |
| HSV | hsv(46, 79%, 60%) |
| CMYK | cmyk(0%, 19.1%, 78.9%, 40.4%) |
| CIE-LAB | lab(52.89, 1.90, 50.46) |
| CIE-LCH | lch(52.89, 50.49, 87.84°) |
| OKLab | oklab(59.46% -0.0002 0.1101) |
| OKLCH | oklch(59.46% 0.11 90.1) |
| XYZ | xyz(20.2938, 20.9469, 4.3405) |
| Luminance | 0.2095 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke Brown
#947706
ΔE00 2.30
Yellowish Brown
#9B7A01
ΔE00 2.38
Hazel
#8E7618
ΔE00 2.85
Baby Poop
#937C00
ΔE00 3.32
Poo
#8F7303
ΔE00 3.55
Diarrhea
#9F8303
ΔE00 4.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#987B20 #203D98
analogous
#983F20 #987B20 #799820
triadic
#987B20 #20987B #7B2098
tetradic
#987B20 #20983F #203D98 #982079
square
#987B20 #20983F #203D98 #982079
split-complementary
#987B20 #207998 #3F2098
monochromatic
#33290B #655215 #987B20 #CBA42B #DCBC57
Accessibility & contrast
On white
4.05
#987B20 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.19
#987B20 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #987B20
5.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##987B20 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##987B20 | 1.00 | 4.05 | 5.19 | 5.19 |
| #FFFFFF | 4.05 | 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)
#8A7A0E
Deuteranopia (green-blind)
#918225
Tritanopia (blue-blind)
#A5706A
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #987b20; /* rgb */ color: rgb(152, 123, 32); /* oklch */ color: oklch(59.5% 0.110 90.1);
Tailwind
colors: {
custom: {
50: '#baa063',
500: '#987b20',
950: '#000000',
},
}SCSS
$custom: #987b20; $custom-light: #baa063; $custom-dark: #000000;
JSON
{
"hex": "#987b20",
"rgb": {
"r": 152,
"g": 123,
"b": 32
},
"hsl": {
"h": 45.5,
"s": 65.217,
"l": 36.078
},
"oklch": {
"l": 0.59464,
"c": 0.11011,
"h": 90.1
},
"luminance": 0.20946
}Semantic roles & 50–950 ramp
primary
#987B20
secondary
#546EBF
accent
#68E840
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#120E06
muted
#817E7A