#987B22#987B22
#987B22 is a mid, moderate yellow. Relative luminance 0.210; OKLCH L 59.5% C 0.109 H 89.9°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).
Color values
| HEX | #987B22 |
|---|---|
| RGB | rgb(152, 123, 34) |
| HSL | hsl(45, 63%, 36%) |
| HSV | hsv(45, 78%, 60%) |
| CMYK | cmyk(0%, 19.1%, 77.6%, 40.4%) |
| CIE-LAB | lab(52.90, 1.98, 49.71) |
| CIE-LCH | lch(52.90, 49.75, 87.72°) |
| OKLab | oklab(59.48% 0.0003 0.109) |
| OKLCH | oklch(59.48% 0.109 89.9) |
| XYZ | xyz(20.3218, 20.9581, 4.4880) |
| Luminance | 0.2096 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke Brown
#947706
ΔE00 2.48
Yellowish Brown
#9B7A01
ΔE00 2.58
Hazel
#8E7618
ΔE00 2.91
Baby Poop
#937C00
ΔE00 3.53
Poo
#8F7303
ΔE00 3.66
Diarrhea
#9F8303
ΔE00 4.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#987B22 #223F98
analogous
#984022 #987B22 #7A9822
triadic
#987B22 #22987B #7B2298
tetradic
#987B22 #229840 #223F98 #98227A
square
#987B22 #229840 #223F98 #98227A
split-complementary
#987B22 #227A98 #402298
monochromatic
#342A0C #665317 #987B22 #CAA32D #DABB5A
Accessibility & contrast
On white
4.05
#987B22 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.19
#987B22 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #987B22
5.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##987B22 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##987B22 | 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)
#8A7A12
Deuteranopia (green-blind)
#918227
Tritanopia (blue-blind)
#A5706A
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #987b22; /* rgb */ color: rgb(152, 123, 34); /* oklch */ color: oklch(59.5% 0.109 89.9);
Tailwind
colors: {
custom: {
50: '#baa064',
500: '#987b22',
950: '#000000',
},
}SCSS
$custom: #987b22; $custom-light: #baa064; $custom-dark: #000000;
JSON
{
"hex": "#987b22",
"rgb": {
"r": 152,
"g": 123,
"b": 34
},
"hsl": {
"h": 45.254,
"s": 63.441,
"l": 36.471
},
"oklch": {
"l": 0.59478,
"c": 0.10895,
"h": 89.9
},
"luminance": 0.20957
}Semantic roles & 50–950 ramp
primary
#987B22
secondary
#5771BE
accent
#6AE641
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120E06
muted
#817E7A