#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
RGBrgb(152, 126, 43)
HSLhsl(46, 56%, 38%)
HSVhsv(46, 72%, 60%)
CMYKcmyk(0%, 17.1%, 71.7%, 40.4%)
CIE-LABlab(53.79, 0.74, 46.89)
CIE-LCHlch(53.79, 46.89, 89.10°)
OKLaboklab(60.19% -0.0022 0.1048)
OKLCHoklch(60.19% 0.105 91.2)
XYZxyz(20.8469, 21.7728, 5.3896)
Luminance0.2177 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

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
##987E2B1.003.925.355.35
#FFFFFF3.921.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.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

Preview Lab

Preview with #987E2B

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#987E2B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva