#987F33#987F33
#987F33 is a mid, moderate yellow. Relative luminance 0.221; OKLCH L 60.5% C 0.099 H 90.8°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).
Color values
| HEX | #987F33 |
|---|---|
| RGB | rgb(152, 127, 51) |
| HSL | hsl(45, 50%, 40%) |
| HSV | hsv(45, 66%, 60%) |
| CMYK | cmyk(0%, 16.4%, 66.4%, 40.4%) |
| CIE-LAB | lab(54.13, 0.66, 43.62) |
| CIE-LCH | lch(54.13, 43.63, 89.14°) |
| OKLab | oklab(60.49% -0.0014 0.0993) |
| OKLCH | oklch(60.49% 0.099 90.8) |
| XYZ | xyz(21.1369, 22.0944, 6.2826) |
| Luminance | 0.2209 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Hazel
#8E7618
ΔE00 4.33
Puke Brown
#947706
ΔE00 4.75
Yellowish Brown
#9B7A01
ΔE00 4.85
Baby Poop
#937C00
ΔE00 4.90
Diarrhea
#9F8303
ΔE00 5.23
Poo
#8F7303
ΔE00 5.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#987F33 #334C98
analogous
#984D33 #987F33 #7E9833
triadic
#987F33 #33987F #7F3398
tetradic
#987F33 #33984D #334C98 #98337E
square
#987F33 #33984D #334C98 #98337E
split-complementary
#987F33 #337E98 #4D3398
monochromatic
#3C3214 #6A5924 #987F33 #C1A347 #D1BA75
Accessibility & contrast
On white
3.88
#987F33 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.42
#987F33 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #987F33
5.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##987F33 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##987F33 | 1.00 | 3.88 | 5.42 | 5.42 |
| #FFFFFF | 3.88 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.42 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.42 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8D7D2A
Deuteranopia (green-blind)
#938436
Tritanopia (blue-blind)
#A4756F
Achromatopsia (no color)
#818181
Design tokens & code
CSS
--color: #987f33; /* rgb */ color: rgb(152, 127, 51); /* oklch */ color: oklch(60.5% 0.099 90.8);
Tailwind
colors: {
custom: {
50: '#b9a36e',
500: '#987f33',
950: '#000000',
},
}SCSS
$custom: #987f33; $custom-light: #b9a36e; $custom-dark: #000000;
JSON
{
"hex": "#987f33",
"rgb": {
"r": 152,
"g": 127,
"b": 51
},
"hsl": {
"h": 45.149,
"s": 49.754,
"l": 39.804
},
"oklch": {
"l": 0.60485,
"c": 0.09928,
"h": 90.8
},
"luminance": 0.22093
}Semantic roles & 50–950 ramp
primary
#987F33
secondary
#6E80B9
accent
#71D94F
background
#FBFAF6
surface
#F7F3EC
border
#D0CDC7
text
#120F07
muted
#817F7A