#987F26#987F26
#987F26 is a mid, moderate yellow. Relative luminance 0.220; OKLCH L 60.4% C 0.109 H 92.7°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).
Color values
| HEX | #987F26 |
|---|---|
| RGB | rgb(152, 127, 38) |
| HSL | hsl(47, 60%, 37%) |
| HSV | hsv(47, 75%, 60%) |
| CMYK | cmyk(0%, 16.4%, 75%, 40.4%) |
| CIE-LAB | lab(54.02, -0.08, 49.21) |
| CIE-LCH | lch(54.02, 49.21, 90.09°) |
| OKLab | oklab(60.37% -0.0052 0.1087) |
| OKLCH | oklch(60.37% 0.109 92.7) |
| XYZ | xyz(20.8893, 21.9953, 4.9786) |
| Luminance | 0.2199 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poop
#937C00
ΔE00 3.14
Puke Brown
#947706
ΔE00 3.53
Yellowish Brown
#9B7A01
ΔE00 3.54
Diarrhea
#9F8303
ΔE00 3.56
Hazel
#8E7618
ΔE00 3.58
Poo
#8F7303
ΔE00 4.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#987F26 #263F98
analogous
#984626 #987F26 #789826
triadic
#987F26 #26987F #7F2698
tetradic
#987F26 #269846 #263F98 #982678
square
#987F26 #269846 #263F98 #982678
split-complementary
#987F26 #267898 #462698
monochromatic
#362D0E #67561A #987F26 #C9A832 #D7BD61
Accessibility & contrast
On white
3.89
#987F26 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.40
#987F26 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #987F26
5.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##987F26 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##987F26 | 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)
#8D7D18
Deuteranopia (green-blind)
#93842B
Tritanopia (blue-blind)
#A5746D
Achromatopsia (no color)
#818181
Design tokens & code
CSS
--color: #987f26; /* rgb */ color: rgb(152, 127, 38); /* oklch */ color: oklch(60.4% 0.109 92.7);
Tailwind
colors: {
custom: {
50: '#baa367',
500: '#987f26',
950: '#000000',
},
}SCSS
$custom: #987f26; $custom-light: #baa367; $custom-dark: #000000;
JSON
{
"hex": "#987f26",
"rgb": {
"r": 152,
"g": 127,
"b": 38
},
"hsl": {
"h": 46.842,
"s": 60,
"l": 37.255
},
"oklch": {
"l": 0.60368,
"c": 0.10884,
"h": 92.7
},
"luminance": 0.21994
}Semantic roles & 50–950 ramp
primary
#987F26
secondary
#5D72BD
accent
#67E345
background
#FBFAF6
surface
#F7F3EB
border
#D0CDC6
text
#120F06
muted
#817F7A