#987E28#987E28
#987E28 is a mid, moderate yellow. Relative luminance 0.217; OKLCH L 60.2% C 0.107 H 91.6°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).
Color values
| HEX | #987E28 |
|---|---|
| RGB | rgb(152, 126, 40) |
| HSL | hsl(46, 58%, 38%) |
| HSV | hsv(46, 74%, 60%) |
| CMYK | cmyk(0%, 17.1%, 73.7%, 40.4%) |
| CIE-LAB | lab(53.76, 0.58, 48.14) |
| CIE-LCH | lch(53.76, 48.14, 89.31°) |
| OKLab | oklab(60.17% -0.003 0.1069) |
| OKLCH | oklch(60.17% 0.107 91.6) |
| XYZ | xyz(20.7939, 21.7515, 5.1103) |
| Luminance | 0.2175 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Hazel
#8E7618
ΔE00 3.43
Puke Brown
#947706
ΔE00 3.44
Yellowish Brown
#9B7A01
ΔE00 3.49
Baby Poop
#937C00
ΔE00 3.50
Diarrhea
#9F8303
ΔE00 4.00
Poo
#8F7303
ΔE00 4.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#987E28 #284298
analogous
#984628 #987E28 #7A9828
triadic
#987E28 #28987E #7E2898
tetradic
#987E28 #289846 #284298 #98287A
square
#987E28 #289846 #284298 #98287A
split-complementary
#987E28 #287A98 #462898
monochromatic
#372E0F #68561B #987E28 #C8A635 #D6BC64
Accessibility & contrast
On white
3.93
#987E28 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.35
#987E28 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #987E28
5.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##987E28 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##987E28 | 1.00 | 3.93 | 5.35 | 5.35 |
| #FFFFFF | 3.93 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.35 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.35 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8C7C1B
Deuteranopia (green-blind)
#93842D
Tritanopia (blue-blind)
#A5736D
Achromatopsia (no color)
#808080
Design tokens & code
CSS
--color: #987e28; /* rgb */ color: rgb(152, 126, 40); /* oklch */ color: oklch(60.2% 0.107 91.6);
Tailwind
colors: {
custom: {
50: '#baa368',
500: '#987e28',
950: '#000000',
},
}SCSS
$custom: #987e28; $custom-light: #baa368; $custom-dark: #000000;
JSON
{
"hex": "#987e28",
"rgb": {
"r": 152,
"g": 126,
"b": 40
},
"hsl": {
"h": 46.071,
"s": 58.333,
"l": 37.647
},
"oklch": {
"l": 0.60168,
"c": 0.10689,
"h": 91.6
},
"luminance": 0.2175
}Semantic roles & 50–950 ramp
primary
#987E28
secondary
#6075BC
accent
#6AE246
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120F06
muted
#817E7A