#987C1F#987C1F
#987C1F is a mid, moderate yellow. Relative luminance 0.212; OKLCH L 59.7% C 0.111 H 91.0°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).
Color values
| HEX | #987C1F |
|---|---|
| RGB | rgb(152, 124, 31) |
| HSL | hsl(46, 66%, 36%) |
| HSV | hsv(46, 80%, 60%) |
| CMYK | cmyk(0%, 18.4%, 79.6%, 40.4%) |
| CIE-LAB | lab(53.16, 1.30, 51.07) |
| CIE-LCH | lch(53.16, 51.08, 88.55°) |
| OKLab | oklab(59.67% -0.002 0.1112) |
| OKLCH | oklch(59.67% 0.111 91) |
| XYZ | xyz(20.4051, 21.1909, 4.3116) |
| Luminance | 0.2119 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke Brown
#947706
ΔE00 2.35
Yellowish Brown
#9B7A01
ΔE00 2.38
Hazel
#8E7618
ΔE00 2.91
Baby Poop
#937C00
ΔE00 2.93
Diarrhea
#9F8303
ΔE00 3.69
Poo
#8F7303
ΔE00 3.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#987C1F #1F3B98
analogous
#98401F #987C1F #77981F
triadic
#987C1F #1F987C #7C1F98
tetradic
#987C1F #1F9840 #1F3B98 #981F77
square
#987C1F #1F9840 #1F3B98 #981F77
split-complementary
#987C1F #1F7798 #401F98
monochromatic
#32290A #655315 #987C1F #CBA529 #DCBD55
Accessibility & contrast
On white
4.01
#987C1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.24
#987C1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #987C1F
5.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##987C1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##987C1F | 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)
#8B7A0B
Deuteranopia (green-blind)
#928225
Tritanopia (blue-blind)
#A5716A
Achromatopsia (no color)
#7F7F7F
Design tokens & code
CSS
--color: #987c1f; /* rgb */ color: rgb(152, 124, 31); /* oklch */ color: oklch(59.7% 0.111 91.0);
Tailwind
colors: {
custom: {
50: '#baa163',
500: '#987c1f',
950: '#000000',
},
}SCSS
$custom: #987c1f; $custom-light: #baa163; $custom-dark: #000000;
JSON
{
"hex": "#987c1f",
"rgb": {
"r": 152,
"g": 124,
"b": 31
},
"hsl": {
"h": 46.116,
"s": 66.12,
"l": 35.882
},
"oklch": {
"l": 0.59672,
"c": 0.11122,
"h": 91
},
"luminance": 0.2119
}Semantic roles & 50–950 ramp
primary
#987C1F
secondary
#536CC0
accent
#66E93F
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#120E06
muted
#817E7A