#987C20#987C20
#987C20 is a mid, moderate yellow. Relative luminance 0.212; OKLCH L 59.7% C 0.111 H 90.9°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).
Color values
| HEX | #987C20 |
|---|---|
| RGB | rgb(152, 124, 32) |
| HSL | hsl(46, 65%, 36%) |
| HSV | hsv(46, 79%, 60%) |
| CMYK | cmyk(0%, 18.4%, 78.9%, 40.4%) |
| CIE-LAB | lab(53.16, 1.34, 50.71) |
| CIE-LCH | lch(53.16, 50.73, 88.49°) |
| OKLab | oklab(59.68% -0.0018 0.1107) |
| OKLCH | oklch(59.68% 0.111 90.9) |
| XYZ | xyz(20.4185, 21.1963, 4.3821) |
| Luminance | 0.2119 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke Brown
#947706
ΔE00 2.42
Yellowish Brown
#9B7A01
ΔE00 2.46
Hazel
#8E7618
ΔE00 2.92
Baby Poop
#937C00
ΔE00 3.02
Poo
#8F7303
ΔE00 3.75
Diarrhea
#9F8303
ΔE00 3.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#987C20 #203C98
analogous
#984020 #987C20 #789820
triadic
#987C20 #20987C #7C2098
tetradic
#987C20 #209840 #203C98 #982078
square
#987C20 #209840 #203C98 #982078
split-complementary
#987C20 #207898 #402098
monochromatic
#332A0B #655315 #987C20 #CBA52B #DCBD57
Accessibility & contrast
On white
4.01
#987C20 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.24
#987C20 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #987C20
5.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##987C20 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##987C20 | 1.00 | 4.01 | 5.24 | 5.24 |
| #FFFFFF | 4.01 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.24 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.24 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8B7A0E
Deuteranopia (green-blind)
#928225
Tritanopia (blue-blind)
#A5716A
Achromatopsia (no color)
#7F7F7F
Design tokens & code
CSS
--color: #987c20; /* rgb */ color: rgb(152, 124, 32); /* oklch */ color: oklch(59.7% 0.111 90.9);
Tailwind
colors: {
custom: {
50: '#baa163',
500: '#987c20',
950: '#000000',
},
}SCSS
$custom: #987c20; $custom-light: #baa163; $custom-dark: #000000;
JSON
{
"hex": "#987c20",
"rgb": {
"r": 152,
"g": 124,
"b": 32
},
"hsl": {
"h": 46,
"s": 65.217,
"l": 36.078
},
"oklch": {
"l": 0.59679,
"c": 0.11066,
"h": 90.9
},
"luminance": 0.21195
}Semantic roles & 50–950 ramp
primary
#987C20
secondary
#546DBF
accent
#67E840
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#120E06
muted
#817E7A