#987C26#987C26
#987C26 is a mid, moderate yellow. Relative luminance 0.212; OKLCH L 59.7% C 0.107 H 90.2°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).
Color values
| HEX | #987C26 |
|---|---|
| RGB | rgb(152, 124, 38) |
| HSL | hsl(45, 60%, 37%) |
| HSV | hsv(45, 75%, 60%) |
| CMYK | cmyk(0%, 18.4%, 75%, 40.4%) |
| CIE-LAB | lab(53.20, 1.60, 48.41) |
| CIE-LCH | lch(53.20, 48.44, 88.10°) |
| OKLab | oklab(59.72% -0.0003 0.107) |
| OKLCH | oklch(59.72% 0.107 90.2) |
| XYZ | xyz(20.5076, 21.2319, 4.8514) |
| Luminance | 0.2123 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke Brown
#947706
ΔE00 2.95
Yellowish Brown
#9B7A01
ΔE00 3.05
Hazel
#8E7618
ΔE00 3.11
Baby Poop
#937C00
ΔE00 3.69
Poo
#8F7303
ΔE00 4.09
Diarrhea
#9F8303
ΔE00 4.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#987C26 #264298
analogous
#984326 #987C26 #7B9826
triadic
#987C26 #26987C #7C2698
tetradic
#987C26 #269843 #264298 #98267B
square
#987C26 #269843 #264298 #98267B
split-complementary
#987C26 #267B98 #432698
monochromatic
#362C0E #67541A #987C26 #C9A432 #D7BA61
Accessibility & contrast
On white
4.00
#987C26 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.25
#987C26 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #987C26
5.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##987C26 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##987C26 | 1.00 | 4.00 | 5.25 | 5.25 |
| #FFFFFF | 4.00 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.25 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.25 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8A7B19
Deuteranopia (green-blind)
#91822B
Tritanopia (blue-blind)
#A5716B
Achromatopsia (no color)
#7F7F7F
Design tokens & code
CSS
--color: #987c26; /* rgb */ color: rgb(152, 124, 38); /* oklch */ color: oklch(59.7% 0.107 90.2);
Tailwind
colors: {
custom: {
50: '#baa166',
500: '#987c26',
950: '#000000',
},
}SCSS
$custom: #987c26; $custom-light: #baa166; $custom-dark: #000000;
JSON
{
"hex": "#987c26",
"rgb": {
"r": 152,
"g": 124,
"b": 38
},
"hsl": {
"h": 45.263,
"s": 60,
"l": 37.255
},
"oklch": {
"l": 0.59722,
"c": 0.10703,
"h": 90.2
},
"luminance": 0.21231
}Semantic roles & 50–950 ramp
primary
#987C26
secondary
#5D75BD
accent
#6CE345
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120E06
muted
#817E7A