#987E2C#987E2C

#987E2C is a mid, moderate yellow. Relative luminance 0.218; OKLCH L 60.2% C 0.104 H 91.1°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#987E2C
RGBrgb(152, 126, 44)
HSLhsl(46, 55%, 38%)
HSVhsv(46, 71%, 60%)
CMYKcmyk(0%, 17.1%, 71.1%, 40.4%)
CIE-LABlab(53.79, 0.79, 46.46)
CIE-LCHlch(53.79, 46.46, 89.02°)
OKLaboklab(60.2% -0.0019 0.1041)
OKLCHoklch(60.2% 0.104 91.1)
XYZxyz(20.8655, 21.7802, 5.4874)
Luminance0.2178 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987E2C #2C4698
analogous
#98482C #987E2C #7C982C
triadic
#987E2C #2C987E #7E2C98
tetradic
#987E2C #2C9848 #2C4698 #982C7C
square
#987E2C #2C9848 #2C4698 #982C7C
split-complementary
#987E2C #2C7C98 #482C98
monochromatic
#392F11 #69571E #987E2C #C6A53B #D4BB6A

Accessibility & contrast

On white

3.92
#987E2C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#987E2C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987E2C
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987E2C#FFFFFF#000000##000000
##987E2C1.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C21
Deuteranopia (green-blind)
#928430
Tritanopia (blue-blind)
#A4746D
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #987e2c;
/* rgb */ color: rgb(152, 126, 44);
/* oklch */ color: oklch(60.2% 0.104 91.1);
Tailwind
colors: {
  custom: {
    50: '#baa36a',
    500: '#987e2c',
    950: '#000000',
  },
}
SCSS
$custom: #987e2c;
$custom-light: #baa36a;
$custom-dark: #000000;
JSON
{
  "hex": "#987e2c",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 44
  },
  "hsl": {
    "h": 45.556,
    "s": 55.102,
    "l": 38.431
  },
  "oklch": {
    "l": 0.60202,
    "c": 0.10408,
    "h": 91.1
  },
  "luminance": 0.21779
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #987E2C

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

Preview Lab → · Contrast checker → · Palette generator →

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