#987D2B#987D2B
#987D2B is a mid, moderate yellow. Relative luminance 0.215; OKLCH L 60.0% C 0.104 H 90.3°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).
Color values
| HEX | #987D2B |
|---|---|
| RGB | rgb(152, 125, 43) |
| HSL | hsl(45, 56%, 38%) |
| HSV | hsv(45, 72%, 60%) |
| CMYK | cmyk(0%, 17.8%, 71.7%, 40.4%) |
| CIE-LAB | lab(53.51, 1.30, 46.61) |
| CIE-LCH | lch(53.51, 46.63, 88.40°) |
| OKLab | oklab(59.98% -0.0006 0.1042) |
| OKLCH | oklch(59.98% 0.104 90.3) |
| XYZ | xyz(20.7197, 21.5183, 5.3471) |
| Luminance | 0.2152 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Hazel
#8E7618
ΔE00 3.48
Puke Brown
#947706
ΔE00 3.58
Yellowish Brown
#9B7A01
ΔE00 3.69
Baby Poop
#937C00
ΔE00 4.09
Diarrhea
#9F8303
ΔE00 4.62
Poo
#8F7303
ΔE00 4.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#987D2B #2B4698
analogous
#98472B #987D2B #7C982B
triadic
#987D2B #2B987D #7D2B98
tetradic
#987D2B #2B9847 #2B4698 #982B7C
square
#987D2B #2B9847 #2B4698 #982B7C
split-complementary
#987D2B #2B7C98 #472B98
monochromatic
#392F10 #68561E #987D2B #C7A439 #D5BA69
Accessibility & contrast
On white
3.96
#987D2B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.30
#987D2B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #987D2B
5.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##987D2B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##987D2B | 1.00 | 3.96 | 5.30 | 5.30 |
| #FFFFFF | 3.96 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.30 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.30 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8B7B20
Deuteranopia (green-blind)
#92832F
Tritanopia (blue-blind)
#A5726C
Achromatopsia (no color)
#808080
Design tokens & code
CSS
--color: #987d2b; /* rgb */ color: rgb(152, 125, 43); /* oklch */ color: oklch(60.0% 0.104 90.3);
Tailwind
colors: {
custom: {
50: '#baa269',
500: '#987d2b',
950: '#000000',
},
}SCSS
$custom: #987d2b; $custom-light: #baa269; $custom-dark: #000000;
JSON
{
"hex": "#987d2b",
"rgb": {
"r": 152,
"g": 125,
"b": 43
},
"hsl": {
"h": 45.138,
"s": 55.897,
"l": 38.235
},
"oklch": {
"l": 0.59978,
"c": 0.10419,
"h": 90.3
},
"luminance": 0.21517
}Semantic roles & 50–950 ramp
primary
#987D2B
secondary
#6479BB
accent
#6EDF49
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120F07
muted
#817E7A