#987F22#987F22
#987F22 is a mid, moderate yellow. Relative luminance 0.220; OKLCH L 60.3% C 0.111 H 93.2°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).
Color values
| HEX | #987F22 |
|---|---|
| RGB | rgb(152, 127, 34) |
| HSL | hsl(47, 63%, 36%) |
| HSV | hsv(47, 78%, 60%) |
| CMYK | cmyk(0%, 16.4%, 77.6%, 40.4%) |
| CIE-LAB | lab(54.00, -0.26, 50.74) |
| CIE-LCH | lch(54.00, 50.74, 90.30°) |
| OKLab | oklab(60.34% -0.0061 0.1111) |
| OKLCH | oklch(60.34% 0.111 93.2) |
| XYZ | xyz(20.8282, 21.9709, 4.6568) |
| Luminance | 0.2197 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poop
#937C00
ΔE00 2.71
Diarrhea
#9F8303
ΔE00 3.17
Yellowish Brown
#9B7A01
ΔE00 3.28
Puke Brown
#947706
ΔE00 3.31
Hazel
#8E7618
ΔE00 3.52
Poo
#8F7303
ΔE00 4.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#987F22 #223B98
analogous
#984422 #987F22 #769822
triadic
#987F22 #22987F #7F2298
tetradic
#987F22 #229844 #223B98 #982276
square
#987F22 #229844 #223B98 #982276
split-complementary
#987F22 #227698 #442298
monochromatic
#342B0C #665517 #987F22 #CAA92D #DABF5A
Accessibility & contrast
On white
3.89
#987F22 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.39
#987F22 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #987F22
5.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##987F22 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##987F22 | 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)
#8D7D11
Deuteranopia (green-blind)
#948428
Tritanopia (blue-blind)
#A5746D
Achromatopsia (no color)
#818181
Design tokens & code
CSS
--color: #987f22; /* rgb */ color: rgb(152, 127, 34); /* oklch */ color: oklch(60.3% 0.111 93.2);
Tailwind
colors: {
custom: {
50: '#baa365',
500: '#987f22',
950: '#000000',
},
}SCSS
$custom: #987f22; $custom-light: #baa365; $custom-dark: #000000;
JSON
{
"hex": "#987f22",
"rgb": {
"r": 152,
"g": 127,
"b": 34
},
"hsl": {
"h": 47.288,
"s": 63.441,
"l": 36.471
},
"oklch": {
"l": 0.6034,
"c": 0.11131,
"h": 93.2
},
"luminance": 0.2197
}Semantic roles & 50–950 ramp
primary
#987F22
secondary
#576DBE
accent
#64E641
background
#FBFAF6
surface
#F7F3EB
border
#D0CDC6
text
#120F06
muted
#817F7A