#987E25#987E25
#987E25 is a mid, moderate yellow. Relative luminance 0.217; OKLCH L 60.1% C 0.109 H 92.0°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).
Color values
| HEX | #987E25 |
|---|---|
| RGB | rgb(152, 126, 37) |
| HSL | hsl(46, 61%, 37%) |
| HSV | hsv(46, 76%, 60%) |
| CMYK | cmyk(0%, 17.1%, 75.7%, 40.4%) |
| CIE-LAB | lab(53.74, 0.43, 49.34) |
| CIE-LCH | lch(53.74, 49.34, 89.50°) |
| OKLab | oklab(60.15% -0.0038 0.1088) |
| OKLCH | oklch(60.15% 0.109 92) |
| XYZ | xyz(20.7448, 21.7319, 4.8519) |
| Luminance | 0.2173 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poop
#937C00
ΔE00 3.14
Puke Brown
#947706
ΔE00 3.20
Yellowish Brown
#9B7A01
ΔE00 3.23
Hazel
#8E7618
ΔE00 3.33
Diarrhea
#9F8303
ΔE00 3.67
Poo
#8F7303
ΔE00 4.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#987E25 #253F98
analogous
#984525 #987E25 #799825
triadic
#987E25 #25987E #7E2598
tetradic
#987E25 #259845 #253F98 #982579
square
#987E25 #259845 #253F98 #982579
split-complementary
#987E25 #257998 #452598
monochromatic
#362C0D #675519 #987E25 #C9A731 #D8BD5F
Accessibility & contrast
On white
3.93
#987E25 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.35
#987E25 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #987E25
5.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##987E25 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##987E25 | 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)
#8C7C16
Deuteranopia (green-blind)
#93842A
Tritanopia (blue-blind)
#A5736C
Achromatopsia (no color)
#808080
Design tokens & code
CSS
--color: #987e25; /* rgb */ color: rgb(152, 126, 37); /* oklch */ color: oklch(60.1% 0.109 92.0);
Tailwind
colors: {
custom: {
50: '#baa366',
500: '#987e25',
950: '#000000',
},
}SCSS
$custom: #987e25; $custom-light: #baa366; $custom-dark: #000000;
JSON
{
"hex": "#987e25",
"rgb": {
"r": 152,
"g": 126,
"b": 37
},
"hsl": {
"h": 46.435,
"s": 60.847,
"l": 37.059
},
"oklch": {
"l": 0.60145,
"c": 0.10886,
"h": 92
},
"luminance": 0.21731
}Semantic roles & 50–950 ramp
primary
#987E25
secondary
#5C72BD
accent
#68E444
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120F06
muted
#817E7A