#987D2C#987D2C

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

Color values

HEX#987D2C
RGBrgb(152, 125, 44)
HSLhsl(45, 55%, 38%)
HSVhsv(45, 71%, 60%)
CMYKcmyk(0%, 17.8%, 71.1%, 40.4%)
CIE-LABlab(53.52, 1.35, 46.18)
CIE-LCHlch(53.52, 46.20, 88.32°)
OKLaboklab(59.99% -0.0003 0.1035)
OKLCHoklch(59.99% 0.103 90.2)
XYZxyz(20.7383, 21.5257, 5.4450)
Luminance0.2152 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987D2C #2C4798
analogous
#98472C #987D2C #7D982C
triadic
#987D2C #2C987D #7D2C98
tetradic
#987D2C #2C9847 #2C4798 #982C7D
square
#987D2C #2C9847 #2C4798 #982C7D
split-complementary
#987D2C #2C7D98 #472C98
monochromatic
#392F11 #69561E #987D2C #C6A33B #D4BA6A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##987D2C#FFFFFF#000000##000000
##987D2C1.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)
#8B7B21
Deuteranopia (green-blind)
#928330
Tritanopia (blue-blind)
#A5736C
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #987d2c;
/* rgb */ color: rgb(152, 125, 44);
/* oklch */ color: oklch(60.0% 0.103 90.2);
Tailwind
colors: {
  custom: {
    50: '#baa26a',
    500: '#987d2c',
    950: '#000000',
  },
}
SCSS
$custom: #987d2c;
$custom-light: #baa26a;
$custom-dark: #000000;
JSON
{
  "hex": "#987d2c",
  "rgb": {
    "r": 152,
    "g": 125,
    "b": 44
  },
  "hsl": {
    "h": 45,
    "s": 55.102,
    "l": 38.431
  },
  "oklch": {
    "l": 0.59987,
    "c": 0.10347,
    "h": 90.2
  },
  "luminance": 0.21524
}

Semantic roles & 50–950 ramp

primary
#987D2C
secondary
#657ABB
accent
#6FDE49
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120F07
muted
#817E7A

Preview Lab

Preview with #987D2C

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

Preview Lab → · Contrast checker → · Palette generator →

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