#987F21#987F21
#987F21 is a mid, moderate yellow. Relative luminance 0.220; OKLCH L 60.3% C 0.112 H 93.3°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).
Color values
| HEX | #987F21 |
|---|---|
| RGB | rgb(152, 127, 33) |
| HSL | hsl(47, 64%, 36%) |
| HSV | hsv(47, 78%, 60%) |
| CMYK | cmyk(0%, 16.4%, 78.3%, 40.4%) |
| CIE-LAB | lab(53.99, -0.31, 51.11) |
| CIE-LCH | lch(53.99, 51.11, 90.34°) |
| OKLab | oklab(60.33% -0.0064 0.1117) |
| OKLCH | oklch(60.33% 0.112 93.3) |
| XYZ | xyz(20.8139, 21.9652, 4.5820) |
| Luminance | 0.2196 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poop
#937C00
ΔE00 2.61
Diarrhea
#9F8303
ΔE00 3.08
Yellowish Brown
#9B7A01
ΔE00 3.22
Puke Brown
#947706
ΔE00 3.26
Hazel
#8E7618
ΔE00 3.52
Poo
#8F7303
ΔE00 4.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#987F21 #213A98
analogous
#984421 #987F21 #769821
triadic
#987F21 #21987F #7F2198
tetradic
#987F21 #219844 #213A98 #982176
square
#987F21 #219844 #213A98 #982176
split-complementary
#987F21 #217698 #442198
monochromatic
#332B0B #665516 #987F21 #CAA92C #DBBF59
Accessibility & contrast
On white
3.89
#987F21 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.39
#987F21 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #987F21
5.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##987F21 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##987F21 | 1.00 | 3.89 | 5.39 | 5.39 |
| #FFFFFF | 3.89 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.39 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.39 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8D7D0E
Deuteranopia (green-blind)
#948427
Tritanopia (blue-blind)
#A5746D
Achromatopsia (no color)
#818181
Design tokens & code
CSS
--color: #987f21; /* rgb */ color: rgb(152, 127, 33); /* oklch */ color: oklch(60.3% 0.112 93.3);
Tailwind
colors: {
custom: {
50: '#baa364',
500: '#987f21',
950: '#000000',
},
}SCSS
$custom: #987f21; $custom-light: #baa364; $custom-dark: #000000;
JSON
{
"hex": "#987f21",
"rgb": {
"r": 152,
"g": 127,
"b": 33
},
"hsl": {
"h": 47.395,
"s": 64.324,
"l": 36.275
},
"oklch": {
"l": 0.60333,
"c": 0.11189,
"h": 93.3
},
"luminance": 0.21964
}Semantic roles & 50–950 ramp
primary
#987F21
secondary
#566CBF
accent
#64E740
background
#FBFAF6
surface
#F7F3EB
border
#D0CDC6
text
#120F06
muted
#817F7A