#987C1D#987C1D
#987C1D is a mid, moderate yellow. Relative luminance 0.212; OKLCH L 59.7% C 0.112 H 91.2°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).
Color values
| HEX | #987C1D |
|---|---|
| RGB | rgb(152, 124, 29) |
| HSL | hsl(46, 68%, 35%) |
| HSV | hsv(46, 81%, 60%) |
| CMYK | cmyk(0%, 18.4%, 80.9%, 40.4%) |
| CIE-LAB | lab(53.15, 1.22, 51.77) |
| CIE-LCH | lch(53.15, 51.78, 88.65°) |
| OKLab | oklab(59.66% -0.0024 0.1123) |
| OKLCH | oklch(59.66% 0.112 91.2) |
| XYZ | xyz(20.3795, 21.1807, 4.1770) |
| Luminance | 0.2118 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke Brown
#947706
ΔE00 2.22
Yellowish Brown
#9B7A01
ΔE00 2.23
Baby Poop
#937C00
ΔE00 2.74
Hazel
#8E7618
ΔE00 2.89
Diarrhea
#9F8303
ΔE00 3.54
Poo
#8F7303
ΔE00 3.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#987C1D #1D3998
analogous
#983E1D #987C1D #77981D
triadic
#987C1D #1D987C #7C1D98
tetradic
#987C1D #1D983E #1D3998 #981D77
square
#987C1D #1D983E #1D3998 #981D77
split-complementary
#987C1D #1D7798 #3E1D98
monochromatic
#312809 #655213 #987C1D #CBA627 #DEBE52
Accessibility & contrast
On white
4.01
#987C1D on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.24
#987C1D on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #987C1D
5.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##987C1D | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##987C1D | 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)
#8B7A07
Deuteranopia (green-blind)
#928223
Tritanopia (blue-blind)
#A5716A
Achromatopsia (no color)
#7F7F7F
Design tokens & code
CSS
--color: #987c1d; /* rgb */ color: rgb(152, 124, 29); /* oklch */ color: oklch(59.7% 0.112 91.2);
Tailwind
colors: {
custom: {
50: '#baa162',
500: '#987c1d',
950: '#000000',
},
}SCSS
$custom: #987c1d; $custom-light: #baa162; $custom-dark: #000000;
JSON
{
"hex": "#987c1d",
"rgb": {
"r": 152,
"g": 124,
"b": 29
},
"hsl": {
"h": 46.341,
"s": 67.956,
"l": 35.49
},
"oklch": {
"l": 0.5966,
"c": 0.11229,
"h": 91.2
},
"luminance": 0.21179
}Semantic roles & 50–950 ramp
primary
#987C1D
secondary
#506AC1
accent
#65EB3D
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#120E05
muted
#817E7A