#987C25#987C25
#987C25 is a mid, moderate yellow. Relative luminance 0.212; OKLCH L 59.7% C 0.108 H 90.3°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).
Color values
| HEX | #987C25 |
|---|---|
| RGB | rgb(152, 124, 37) |
| HSL | hsl(45, 61%, 37%) |
| HSV | hsv(45, 76%, 60%) |
| CMYK | cmyk(0%, 18.4%, 75.7%, 40.4%) |
| CIE-LAB | lab(53.20, 1.56, 48.81) |
| CIE-LCH | lch(53.20, 48.84, 88.17°) |
| OKLab | oklab(59.71% -0.0006 0.1077) |
| OKLCH | oklch(59.71% 0.108 90.3) |
| XYZ | xyz(20.4916, 21.2256, 4.7675) |
| Luminance | 0.2122 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke Brown
#947706
ΔE00 2.85
Yellowish Brown
#9B7A01
ΔE00 2.94
Hazel
#8E7618
ΔE00 3.07
Baby Poop
#937C00
ΔE00 3.57
Poo
#8F7303
ΔE00 4.02
Diarrhea
#9F8303
ΔE00 4.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#987C25 #254198
analogous
#984225 #987C25 #7B9825
triadic
#987C25 #25987C #7C2598
tetradic
#987C25 #259842 #254198 #98257B
square
#987C25 #259842 #254198 #98257B
split-complementary
#987C25 #257B98 #422598
monochromatic
#362C0D #675419 #987C25 #C9A431 #D8BB5F
Accessibility & contrast
On white
4.00
#987C25 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.24
#987C25 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #987C25
5.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##987C25 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##987C25 | 1.00 | 4.00 | 5.24 | 5.24 |
| #FFFFFF | 4.00 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.24 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.24 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8B7A17
Deuteranopia (green-blind)
#91822A
Tritanopia (blue-blind)
#A5716B
Achromatopsia (no color)
#7F7F7F
Design tokens & code
CSS
--color: #987c25; /* rgb */ color: rgb(152, 124, 37); /* oklch */ color: oklch(59.7% 0.108 90.3);
Tailwind
colors: {
custom: {
50: '#baa166',
500: '#987c25',
950: '#000000',
},
}SCSS
$custom: #987c25; $custom-light: #baa166; $custom-dark: #000000;
JSON
{
"hex": "#987c25",
"rgb": {
"r": 152,
"g": 124,
"b": 37
},
"hsl": {
"h": 45.391,
"s": 60.847,
"l": 37.059
},
"oklch": {
"l": 0.59714,
"c": 0.10767,
"h": 90.3
},
"luminance": 0.21224
}Semantic roles & 50–950 ramp
primary
#987C25
secondary
#5C73BD
accent
#6BE444
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120E06
muted
#817E7A