#987D2A#987D2A

#987D2A is a mid, moderate yellow. Relative luminance 0.215; OKLCH L 60.0% C 0.105 H 90.5°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#987D2A
RGBrgb(152, 125, 42)
HSLhsl(45, 57%, 38%)
HSVhsv(45, 72%, 60%)
CMYKcmyk(0%, 17.8%, 72.4%, 40.4%)
CIE-LABlab(53.50, 1.25, 47.03)
CIE-LCHlch(53.50, 47.05, 88.48°)
OKLaboklab(59.97% -0.0009 0.1049)
OKLCHoklch(59.97% 0.105 90.5)
XYZxyz(20.7016, 21.5110, 5.2517)
Luminance0.2151 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987D2A #2A4598
analogous
#98462A #987D2A #7C982A
triadic
#987D2A #2A987D #7D2A98
tetradic
#987D2A #2A9846 #2A4598 #982A7C
square
#987D2A #2A9846 #2A4598 #982A7C
split-complementary
#987D2A #2A7C98 #462A98
monochromatic
#382E10 #68561D #987D2A #C8A437 #D5BA67

Accessibility & contrast

On white

3.96
#987D2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#987D2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987D2A
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987D2A#FFFFFF#000000##000000
##987D2A1.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)
#8B7B1E
Deuteranopia (green-blind)
#92832E
Tritanopia (blue-blind)
#A5726C
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #987d2a;
/* rgb */ color: rgb(152, 125, 42);
/* oklch */ color: oklch(60.0% 0.105 90.5);
Tailwind
colors: {
  custom: {
    50: '#baa269',
    500: '#987d2a',
    950: '#000000',
  },
}
SCSS
$custom: #987d2a;
$custom-light: #baa269;
$custom-dark: #000000;
JSON
{
  "hex": "#987d2a",
  "rgb": {
    "r": 152,
    "g": 125,
    "b": 42
  },
  "hsl": {
    "h": 45.273,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.59969,
    "c": 0.1049,
    "h": 90.5
  },
  "luminance": 0.2151
}

Semantic roles & 50–950 ramp

primary
#987D2A
secondary
#6278BB
accent
#6DE048
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120F06
muted
#817E7A

Preview Lab

Preview with #987D2A

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

Preview Lab → · Contrast checker → · Palette generator →

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