#987C22#987C22
#987C22 is a mid, moderate yellow. Relative luminance 0.212; OKLCH L 59.7% C 0.110 H 90.7°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).
Color values
| HEX | #987C22 |
|---|---|
| RGB | rgb(152, 124, 34) |
| HSL | hsl(46, 63%, 36%) |
| HSV | hsv(46, 78%, 60%) |
| CMYK | cmyk(0%, 18.4%, 77.6%, 40.4%) |
| CIE-LAB | lab(53.18, 1.42, 49.97) |
| CIE-LCH | lch(53.18, 49.99, 88.37°) |
| OKLab | oklab(59.69% -0.0013 0.1095) |
| OKLCH | oklch(59.69% 0.11 90.7) |
| XYZ | xyz(20.4465, 21.2075, 4.5296) |
| Luminance | 0.2121 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke Brown
#947706
ΔE00 2.58
Yellowish Brown
#9B7A01
ΔE00 2.64
Hazel
#8E7618
ΔE00 2.96
Baby Poop
#937C00
ΔE00 3.23
Poo
#8F7303
ΔE00 3.84
Diarrhea
#9F8303
ΔE00 3.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#987C22 #223E98
analogous
#984122 #987C22 #799822
triadic
#987C22 #22987C #7C2298
tetradic
#987C22 #229841 #223E98 #982279
square
#987C22 #229841 #223E98 #982279
split-complementary
#987C22 #227998 #412298
monochromatic
#342A0C #665317 #987C22 #CAA52D #DABC5A
Accessibility & contrast
On white
4.01
#987C22 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.24
#987C22 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #987C22
5.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##987C22 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##987C22 | 1.00 | 4.01 | 5.24 | 5.24 |
| #FFFFFF | 4.01 | 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)
#8B7A12
Deuteranopia (green-blind)
#918227
Tritanopia (blue-blind)
#A5716B
Achromatopsia (no color)
#7F7F7F
Design tokens & code
CSS
--color: #987c22; /* rgb */ color: rgb(152, 124, 34); /* oklch */ color: oklch(59.7% 0.110 90.7);
Tailwind
colors: {
custom: {
50: '#baa164',
500: '#987c22',
950: '#000000',
},
}SCSS
$custom: #987c22; $custom-light: #baa164; $custom-dark: #000000;
JSON
{
"hex": "#987c22",
"rgb": {
"r": 152,
"g": 124,
"b": 34
},
"hsl": {
"h": 45.763,
"s": 63.441,
"l": 36.471
},
"oklch": {
"l": 0.59692,
"c": 0.10951,
"h": 90.7
},
"luminance": 0.21206
}Semantic roles & 50–950 ramp
primary
#987C22
secondary
#5770BE
accent
#69E641
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120E06
muted
#817E7A