#987E22#987E22
#987E22 is a mid, moderate yellow. Relative luminance 0.217; OKLCH L 60.1% C 0.111 H 92.4°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).
Color values
| HEX | #987E22 |
|---|---|
| RGB | rgb(152, 126, 34) |
| HSL | hsl(47, 63%, 36%) |
| HSV | hsv(47, 78%, 60%) |
| CMYK | cmyk(0%, 17.1%, 77.6%, 40.4%) |
| CIE-LAB | lab(53.72, 0.30, 50.48) |
| CIE-LCH | lch(53.72, 50.48, 89.66°) |
| OKLab | oklab(60.12% -0.0045 0.1106) |
| OKLCH | oklch(60.12% 0.111 92.4) |
| XYZ | xyz(20.6997, 21.7139, 4.6140) |
| Luminance | 0.2171 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poop
#937C00
ΔE00 2.81
Yellowish Brown
#9B7A01
ΔE00 3.00
Puke Brown
#947706
ΔE00 3.01
Hazel
#8E7618
ΔE00 3.28
Diarrhea
#9F8303
ΔE00 3.38
Poo
#8F7303
ΔE00 4.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#987E22 #223C98
analogous
#984322 #987E22 #779822
triadic
#987E22 #22987E #7E2298
tetradic
#987E22 #229843 #223C98 #982277
square
#987E22 #229843 #223C98 #982277
split-complementary
#987E22 #227798 #432298
monochromatic
#342B0C #665517 #987E22 #CAA72D #DABE5A
Accessibility & contrast
On white
3.93
#987E22 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.34
#987E22 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #987E22
5.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##987E22 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##987E22 | 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)
#8C7C11
Deuteranopia (green-blind)
#938427
Tritanopia (blue-blind)
#A5736C
Achromatopsia (no color)
#808080
Design tokens & code
CSS
--color: #987e22; /* rgb */ color: rgb(152, 126, 34); /* oklch */ color: oklch(60.1% 0.111 92.4);
Tailwind
colors: {
custom: {
50: '#baa365',
500: '#987e22',
950: '#000000',
},
}SCSS
$custom: #987e22; $custom-light: #baa365; $custom-dark: #000000;
JSON
{
"hex": "#987e22",
"rgb": {
"r": 152,
"g": 126,
"b": 34
},
"hsl": {
"h": 46.78,
"s": 63.441,
"l": 36.471
},
"oklch": {
"l": 0.60123,
"c": 0.11068,
"h": 92.4
},
"luminance": 0.21713
}Semantic roles & 50–950 ramp
primary
#987E22
secondary
#576EBE
accent
#66E641
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120F06
muted
#817E7A