#987E2B#987E2B
#987E2B is a mid, moderate yellow. Relative luminance 0.218; OKLCH L 60.2% C 0.105 H 91.2°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).
Color values
| HEX | #987E2B |
|---|---|
| RGB | rgb(152, 126, 43) |
| HSL | hsl(46, 56%, 38%) |
| HSV | hsv(46, 72%, 60%) |
| CMYK | cmyk(0%, 17.1%, 71.7%, 40.4%) |
| CIE-LAB | lab(53.79, 0.74, 46.89) |
| CIE-LCH | lch(53.79, 46.89, 89.10°) |
| OKLab | oklab(60.19% -0.0022 0.1048) |
| OKLCH | oklch(60.19% 0.105 91.2) |
| XYZ | xyz(20.8469, 21.7728, 5.3896) |
| Luminance | 0.2177 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Hazel
#8E7618
ΔE00 3.59
Puke Brown
#947706
ΔE00 3.71
Yellowish Brown
#9B7A01
ΔE00 3.79
Baby Poop
#937C00
ΔE00 3.89
Diarrhea
#9F8303
ΔE00 4.36
Poo
#8F7303
ΔE00 4.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#987E2B #2B4598
analogous
#98472B #987E2B #7B982B
triadic
#987E2B #2B987E #7E2B98
tetradic
#987E2B #2B9847 #2B4598 #982B7B
square
#987E2B #2B9847 #2B4598 #982B7B
split-complementary
#987E2B #2B7B98 #472B98
monochromatic
#392F10 #68561E #987E2B #C7A539 #D5BB69
Accessibility & contrast
On white
3.92
#987E2B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.35
#987E2B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #987E2B
5.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##987E2B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##987E2B | 1.00 | 3.92 | 5.35 | 5.35 |
| #FFFFFF | 3.92 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.35 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.35 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8C7C20
Deuteranopia (green-blind)
#92842F
Tritanopia (blue-blind)
#A5746D
Achromatopsia (no color)
#818181
Design tokens & code
CSS
--color: #987e2b; /* rgb */ color: rgb(152, 126, 43); /* oklch */ color: oklch(60.2% 0.105 91.2);
Tailwind
colors: {
custom: {
50: '#baa369',
500: '#987e2b',
950: '#000000',
},
}SCSS
$custom: #987e2b; $custom-light: #baa369; $custom-dark: #000000;
JSON
{
"hex": "#987e2b",
"rgb": {
"r": 152,
"g": 126,
"b": 43
},
"hsl": {
"h": 45.688,
"s": 55.897,
"l": 38.235
},
"oklch": {
"l": 0.60193,
"c": 0.1048,
"h": 91.2
},
"luminance": 0.21772
}Semantic roles & 50–950 ramp
primary
#987E2B
secondary
#6479BB
accent
#6DDF49
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120F07
muted
#817E7A