#987F27#987F27
#987F27 is a mid, moderate yellow. Relative luminance 0.220; OKLCH L 60.4% C 0.108 H 92.6°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).
Color values
| HEX | #987F27 |
|---|---|
| RGB | rgb(152, 127, 39) |
| HSL | hsl(47, 59%, 37%) |
| HSV | hsv(47, 74%, 60%) |
| CMYK | cmyk(0%, 16.4%, 74.3%, 40.4%) |
| CIE-LAB | lab(54.03, -0.03, 48.81) |
| CIE-LCH | lch(54.03, 48.81, 90.04°) |
| OKLab | oklab(60.38% -0.0049 0.1081) |
| OKLCH | oklch(60.38% 0.108 92.6) |
| XYZ | xyz(20.9056, 22.0019, 5.0647) |
| Luminance | 0.2200 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poop
#937C00
ΔE00 3.25
Puke Brown
#947706
ΔE00 3.59
Hazel
#8E7618
ΔE00 3.60
Yellowish Brown
#9B7A01
ΔE00 3.61
Diarrhea
#9F8303
ΔE00 3.67
Poo
#8F7303
ΔE00 4.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#987F27 #274098
analogous
#984727 #987F27 #789827
triadic
#987F27 #27987F #7F2798
tetradic
#987F27 #279847 #274098 #982778
square
#987F27 #279847 #274098 #982778
split-complementary
#987F27 #277898 #472798
monochromatic
#372E0E #67561B #987F27 #C9A833 #D7BD63
Accessibility & contrast
On white
3.89
#987F27 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.40
#987F27 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #987F27
5.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##987F27 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##987F27 | 1.00 | 3.89 | 5.40 | 5.40 |
| #FFFFFF | 3.89 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.40 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.40 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8D7D19
Deuteranopia (green-blind)
#93842C
Tritanopia (blue-blind)
#A5746D
Achromatopsia (no color)
#818181
Design tokens & code
CSS
--color: #987f27; /* rgb */ color: rgb(152, 127, 39); /* oklch */ color: oklch(60.4% 0.108 92.6);
Tailwind
colors: {
custom: {
50: '#baa367',
500: '#987f27',
950: '#000000',
},
}SCSS
$custom: #987f27; $custom-light: #baa367; $custom-dark: #000000;
JSON
{
"hex": "#987f27",
"rgb": {
"r": 152,
"g": 127,
"b": 39
},
"hsl": {
"h": 46.726,
"s": 59.162,
"l": 37.451
},
"oklch": {
"l": 0.60376,
"c": 0.10819,
"h": 92.6
},
"luminance": 0.22001
}Semantic roles & 50–950 ramp
primary
#987F27
secondary
#5E73BC
accent
#68E245
background
#FBFAF6
surface
#F7F3EB
border
#D0CDC6
text
#120F06
muted
#817F7A