#987F28#987F28
#987F28 is a mid, moderate yellow. Relative luminance 0.220; OKLCH L 60.4% C 0.108 H 92.5°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).
Color values
| HEX | #987F28 |
|---|---|
| RGB | rgb(152, 127, 40) |
| HSL | hsl(47, 58%, 38%) |
| HSV | hsv(47, 74%, 60%) |
| CMYK | cmyk(0%, 16.4%, 73.7%, 40.4%) |
| CIE-LAB | lab(54.04, 0.02, 48.41) |
| CIE-LCH | lch(54.04, 48.41, 89.98°) |
| OKLab | oklab(60.38% -0.0046 0.1074) |
| OKLCH | oklch(60.38% 0.108 92.5) |
| XYZ | xyz(20.9224, 22.0086, 5.1531) |
| Luminance | 0.2201 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poop
#937C00
ΔE00 3.37
Hazel
#8E7618
ΔE00 3.63
Puke Brown
#947706
ΔE00 3.66
Yellowish Brown
#9B7A01
ΔE00 3.69
Diarrhea
#9F8303
ΔE00 3.78
Poo
#8F7303
ΔE00 4.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#987F28 #284198
analogous
#984728 #987F28 #799828
triadic
#987F28 #28987F #7F2898
tetradic
#987F28 #289847 #284198 #982879
square
#987F28 #289847 #284198 #982879
split-complementary
#987F28 #287998 #472898
monochromatic
#372E0F #68571B #987F28 #C8A735 #D6BD64
Accessibility & contrast
On white
3.89
#987F28 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.40
#987F28 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #987F28
5.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##987F28 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##987F28 | 1.00 | 3.89 | 5.40 | 5.40 |
| #FFFFFF | 3.89 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.40 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.40 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8D7D1B
Deuteranopia (green-blind)
#93842D
Tritanopia (blue-blind)
#A5746E
Achromatopsia (no color)
#818181
Design tokens & code
CSS
--color: #987f28; /* rgb */ color: rgb(152, 127, 40); /* oklch */ color: oklch(60.4% 0.108 92.5);
Tailwind
colors: {
custom: {
50: '#baa368',
500: '#987f28',
950: '#000000',
},
}SCSS
$custom: #987f28; $custom-light: #baa368; $custom-dark: #000000;
JSON
{
"hex": "#987f28",
"rgb": {
"r": 152,
"g": 127,
"b": 40
},
"hsl": {
"h": 46.607,
"s": 58.333,
"l": 37.647
},
"oklch": {
"l": 0.60384,
"c": 0.10752,
"h": 92.5
},
"luminance": 0.22007
}Semantic roles & 50–950 ramp
primary
#987F28
secondary
#6074BC
accent
#69E246
background
#FBFAF6
surface
#F7F3EB
border
#D0CDC6
text
#120F06
muted
#817F7A