#987F2F#987F2F
#987F2F is a mid, moderate yellow. Relative luminance 0.221; OKLCH L 60.4% C 0.102 H 91.5°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).
Color values
| HEX | #987F2F |
|---|---|
| RGB | rgb(152, 127, 47) |
| HSL | hsl(46, 53%, 39%) |
| HSV | hsv(46, 69%, 60%) |
| CMYK | cmyk(0%, 16.4%, 69.1%, 40.4%) |
| CIE-LAB | lab(54.09, 0.41, 45.43) |
| CIE-LCH | lch(54.09, 45.43, 89.49°) |
| OKLab | oklab(60.45% -0.0027 0.1024) |
| OKLCH | oklch(60.45% 0.102 91.5) |
| XYZ | xyz(21.0524, 22.0606, 5.8380) |
| Luminance | 0.2206 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Hazel
#8E7618
ΔE00 4.00
Puke Brown
#947706
ΔE00 4.29
Baby Poop
#937C00
ΔE00 4.30
Yellowish Brown
#9B7A01
ΔE00 4.37
Diarrhea
#9F8303
ΔE00 4.66
Poo
#8F7303
ΔE00 5.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#987F2F #2F4898
analogous
#984B2F #987F2F #7D982F
triadic
#987F2F #2F987F #7F2F98
tetradic
#987F2F #2F984B #2F4898 #982F7D
square
#987F2F #2F984B #2F4898 #982F7D
split-complementary
#987F2F #2F7D98 #4B2F98
monochromatic
#3B3112 #695821 #987F2F #C4A540 #D2BB6F
Accessibility & contrast
On white
3.88
#987F2F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.41
#987F2F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #987F2F
5.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##987F2F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##987F2F | 1.00 | 3.88 | 5.41 | 5.41 |
| #FFFFFF | 3.88 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.41 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.41 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8D7D25
Deuteranopia (green-blind)
#938433
Tritanopia (blue-blind)
#A4756E
Achromatopsia (no color)
#818181
Design tokens & code
CSS
--color: #987f2f; /* rgb */ color: rgb(152, 127, 47); /* oklch */ color: oklch(60.4% 0.102 91.5);
Tailwind
colors: {
custom: {
50: '#baa36c',
500: '#987f2f',
950: '#000000',
},
}SCSS
$custom: #987f2f; $custom-light: #baa36c; $custom-dark: #000000;
JSON
{
"hex": "#987f2f",
"rgb": {
"r": 152,
"g": 127,
"b": 47
},
"hsl": {
"h": 45.714,
"s": 52.764,
"l": 39.02
},
"oklch": {
"l": 0.60445,
"c": 0.10246,
"h": 91.5
},
"luminance": 0.22059
}Semantic roles & 50–950 ramp
primary
#987F2F
secondary
#697CBA
accent
#6EDC4C
background
#FBFAF6
surface
#F7F3EB
border
#D0CDC6
text
#120F07
muted
#817F7A