#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
RGBrgb(152, 125, 43)
HSLhsl(45, 56%, 38%)
HSVhsv(45, 72%, 60%)
CMYKcmyk(0%, 17.8%, 71.7%, 40.4%)
CIE-LABlab(53.51, 1.30, 46.61)
CIE-LCHlch(53.51, 46.63, 88.40°)
OKLaboklab(59.98% -0.0006 0.1042)
OKLCHoklch(59.98% 0.104 90.3)
XYZxyz(20.7197, 21.5183, 5.3471)
Luminance0.2152 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

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
##987D2B1.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.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

Preview Lab

Preview with #987D2B

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

Preview Lab → · Contrast checker → · Palette generator →

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