#987C28#987C28
#987C28 is a mid, moderate yellow. Relative luminance 0.212; OKLCH L 59.7% C 0.106 H 89.9°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).
Color values
| HEX | #987C28 |
|---|---|
| RGB | rgb(152, 124, 40) |
| HSL | hsl(45, 58%, 38%) |
| HSV | hsv(45, 74%, 60%) |
| CMYK | cmyk(0%, 18.4%, 73.7%, 40.4%) |
| CIE-LAB | lab(53.22, 1.70, 47.60) |
| CIE-LCH | lch(53.22, 47.63, 87.95°) |
| OKLab | oklab(59.74% 0.0002 0.1057) |
| OKLCH | oklch(59.74% 0.106 89.9) |
| XYZ | xyz(20.5407, 21.2452, 5.0259) |
| Luminance | 0.2124 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke Brown
#947706
ΔE00 3.17
Hazel
#8E7618
ΔE00 3.23
Yellowish Brown
#9B7A01
ΔE00 3.28
Baby Poop
#937C00
ΔE00 3.93
Poo
#8F7303
ΔE00 4.24
Diarrhea
#9F8303
ΔE00 4.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#987C28 #284498
analogous
#984428 #987C28 #7C9828
triadic
#987C28 #28987C #7C2898
tetradic
#987C28 #289844 #284498 #98287C
square
#987C28 #289844 #284498 #98287C
split-complementary
#987C28 #287C98 #442898
monochromatic
#372D0F #68541B #987C28 #C8A435 #D6BA64
Accessibility & contrast
On white
4.00
#987C28 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.25
#987C28 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #987C28
5.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##987C28 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##987C28 | 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)
#8A7B1C
Deuteranopia (green-blind)
#91822C
Tritanopia (blue-blind)
#A5716B
Achromatopsia (no color)
#7F7F7F
Design tokens & code
CSS
--color: #987c28; /* rgb */ color: rgb(152, 124, 40); /* oklch */ color: oklch(59.7% 0.106 89.9);
Tailwind
colors: {
custom: {
50: '#baa167',
500: '#987c28',
950: '#000000',
},
}SCSS
$custom: #987c28; $custom-light: #baa167; $custom-dark: #000000;
JSON
{
"hex": "#987c28",
"rgb": {
"r": 152,
"g": 124,
"b": 40
},
"hsl": {
"h": 45,
"s": 58.333,
"l": 37.647
},
"oklch": {
"l": 0.59738,
"c": 0.1057,
"h": 89.9
},
"luminance": 0.21244
}Semantic roles & 50–950 ramp
primary
#987C28
secondary
#6077BC
accent
#6DE246
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120E06
muted
#817E7A