#987C27#987C27
#987C27 is a mid, moderate yellow. Relative luminance 0.212; OKLCH L 59.7% C 0.106 H 90.0°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).
Color values
| HEX | #987C27 |
|---|---|
| RGB | rgb(152, 124, 39) |
| HSL | hsl(45, 59%, 37%) |
| HSV | hsv(45, 74%, 60%) |
| CMYK | cmyk(0%, 18.4%, 74.3%, 40.4%) |
| CIE-LAB | lab(53.21, 1.65, 48.01) |
| CIE-LCH | lch(53.21, 48.03, 88.03°) |
| OKLab | oklab(59.73% -0.0001 0.1064) |
| OKLCH | oklch(59.73% 0.106 90) |
| XYZ | xyz(20.5239, 21.2385, 4.9375) |
| Luminance | 0.2124 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke Brown
#947706
ΔE00 3.06
Yellowish Brown
#9B7A01
ΔE00 3.16
Hazel
#8E7618
ΔE00 3.17
Baby Poop
#937C00
ΔE00 3.81
Poo
#8F7303
ΔE00 4.16
Diarrhea
#9F8303
ΔE00 4.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#987C27 #274398
analogous
#984427 #987C27 #7B9827
triadic
#987C27 #27987C #7C2798
tetradic
#987C27 #279844 #274398 #98277B
square
#987C27 #279844 #274398 #98277B
split-complementary
#987C27 #277B98 #442798
monochromatic
#372D0E #67541B #987C27 #C9A433 #D7BA63
Accessibility & contrast
On white
4.00
#987C27 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.25
#987C27 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #987C27
5.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##987C27 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##987C27 | 1.00 | 4.00 | 5.25 | 5.25 |
| #FFFFFF | 4.00 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.25 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.25 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8A7B1A
Deuteranopia (green-blind)
#91822B
Tritanopia (blue-blind)
#A5716B
Achromatopsia (no color)
#7F7F7F
Design tokens & code
CSS
--color: #987c27; /* rgb */ color: rgb(152, 124, 39); /* oklch */ color: oklch(59.7% 0.106 90.0);
Tailwind
colors: {
custom: {
50: '#baa167',
500: '#987c27',
950: '#000000',
},
}SCSS
$custom: #987c27; $custom-light: #baa167; $custom-dark: #000000;
JSON
{
"hex": "#987c27",
"rgb": {
"r": 152,
"g": 124,
"b": 39
},
"hsl": {
"h": 45.133,
"s": 59.162,
"l": 37.451
},
"oklch": {
"l": 0.59729,
"c": 0.10637,
"h": 90
},
"luminance": 0.21237
}Semantic roles & 50–950 ramp
primary
#987C27
secondary
#5E76BC
accent
#6CE245
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120E06
muted
#817E7A