#987E30#987E30
#987E30 is a mid, moderate yellow. Relative luminance 0.218; OKLCH L 60.2% C 0.101 H 90.4°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).
Color values
| HEX | #987E30 |
|---|---|
| RGB | rgb(152, 126, 48) |
| HSL | hsl(45, 52%, 39%) |
| HSV | hsv(45, 68%, 60%) |
| CMYK | cmyk(0%, 17.1%, 68.4%, 40.4%) |
| CIE-LAB | lab(53.83, 1.03, 44.70) |
| CIE-LCH | lch(53.83, 44.71, 88.68°) |
| OKLab | oklab(60.24% -0.0008 0.1011) |
| OKLCH | oklch(60.24% 0.101 90.4) |
| XYZ | xyz(20.9443, 21.8117, 5.9026) |
| Luminance | 0.2181 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Hazel
#8E7618
ΔE00 3.96
Puke Brown
#947706
ΔE00 4.27
Yellowish Brown
#9B7A01
ΔE00 4.38
Baby Poop
#937C00
ΔE00 4.60
Diarrhea
#9F8303
ΔE00 5.02
Poo
#8F7303
ΔE00 5.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#987E30 #304A98
analogous
#984A30 #987E30 #7E9830
triadic
#987E30 #30987E #7E3098
tetradic
#987E30 #30984A #304A98 #98307E
square
#987E30 #30984A #304A98 #98307E
split-complementary
#987E30 #307E98 #4A3098
monochromatic
#3B3113 #695721 #987E30 #C3A342 #D2BA70
Accessibility & contrast
On white
3.92
#987E30 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.36
#987E30 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #987E30
5.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##987E30 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##987E30 | 1.00 | 3.92 | 5.36 | 5.36 |
| #FFFFFF | 3.92 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.36 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.36 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8C7C27
Deuteranopia (green-blind)
#928434
Tritanopia (blue-blind)
#A4746E
Achromatopsia (no color)
#818181
Design tokens & code
CSS
--color: #987e30; /* rgb */ color: rgb(152, 126, 48); /* oklch */ color: oklch(60.2% 0.101 90.4);
Tailwind
colors: {
custom: {
50: '#baa36c',
500: '#987e30',
950: '#000000',
},
}SCSS
$custom: #987e30; $custom-light: #baa36c; $custom-dark: #000000;
JSON
{
"hex": "#987e30",
"rgb": {
"r": 152,
"g": 126,
"b": 48
},
"hsl": {
"h": 45,
"s": 52,
"l": 39.216
},
"oklch": {
"l": 0.60239,
"c": 0.10105,
"h": 90.4
},
"luminance": 0.21811
}Semantic roles & 50–950 ramp
primary
#987E30
secondary
#6A7EBA
accent
#70DB4C
background
#FBF9F6
surface
#F7F2EC
border
#D0CCC7
text
#120F07
muted
#817E7A