#987E27#987E27
#987E27 is a mid, moderate yellow. Relative luminance 0.217; OKLCH L 60.2% C 0.108 H 91.8°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).
Color values
| HEX | #987E27 |
|---|---|
| RGB | rgb(152, 126, 39) |
| HSL | hsl(46, 59%, 37%) |
| HSV | hsv(46, 74%, 60%) |
| CMYK | cmyk(0%, 17.1%, 74.3%, 40.4%) |
| CIE-LAB | lab(53.76, 0.53, 48.54) |
| CIE-LCH | lch(53.76, 48.55, 89.38°) |
| OKLab | oklab(60.16% -0.0033 0.1075) |
| OKLCH | oklch(60.16% 0.108 91.8) |
| XYZ | xyz(20.7771, 21.7448, 5.0219) |
| Luminance | 0.2174 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke Brown
#947706
ΔE00 3.35
Baby Poop
#937C00
ΔE00 3.38
Hazel
#8E7618
ΔE00 3.39
Yellowish Brown
#9B7A01
ΔE00 3.40
Diarrhea
#9F8303
ΔE00 3.89
Poo
#8F7303
ΔE00 4.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#987E27 #274198
analogous
#984627 #987E27 #799827
triadic
#987E27 #27987E #7E2798
tetradic
#987E27 #279846 #274198 #982779
square
#987E27 #279846 #274198 #982779
split-complementary
#987E27 #277998 #462798
monochromatic
#372D0E #67561B #987E27 #C9A633 #D7BC63
Accessibility & contrast
On white
3.93
#987E27 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.35
#987E27 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #987E27
5.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##987E27 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##987E27 | 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)
#8C7C1A
Deuteranopia (green-blind)
#93842C
Tritanopia (blue-blind)
#A5736D
Achromatopsia (no color)
#808080
Design tokens & code
CSS
--color: #987e27; /* rgb */ color: rgb(152, 126, 39); /* oklch */ color: oklch(60.2% 0.108 91.8);
Tailwind
colors: {
custom: {
50: '#baa367',
500: '#987e27',
950: '#000000',
},
}SCSS
$custom: #987e27; $custom-light: #baa367; $custom-dark: #000000;
JSON
{
"hex": "#987e27",
"rgb": {
"r": 152,
"g": 126,
"b": 39
},
"hsl": {
"h": 46.195,
"s": 59.162,
"l": 37.451
},
"oklch": {
"l": 0.6016,
"c": 0.10756,
"h": 91.8
},
"luminance": 0.21744
}Semantic roles & 50–950 ramp
primary
#987E27
secondary
#5E74BC
accent
#6AE245
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120F06
muted
#817E7A