#987F2C#987F2C

#987F2C is a mid, moderate yellow. Relative luminance 0.220; OKLCH L 60.4% C 0.105 H 91.9°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#987F2C
RGBrgb(152, 127, 44)
HSLhsl(46, 55%, 38%)
HSVhsv(46, 71%, 60%)
CMYKcmyk(0%, 16.4%, 71.1%, 40.4%)
CIE-LABlab(54.07, 0.23, 46.74)
CIE-LCHlch(54.07, 46.74, 89.72°)
OKLaboklab(60.42% -0.0035 0.1047)
OKLCHoklch(60.42% 0.105 91.9)
XYZxyz(20.9940, 22.0372, 5.5302)
Luminance0.2204 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987F2C #2C4598
analogous
#98492C #987F2C #7B982C
triadic
#987F2C #2C987F #7F2C98
tetradic
#987F2C #2C9849 #2C4598 #982C7B
square
#987F2C #2C9849 #2C4598 #982C7B
split-complementary
#987F2C #2C7B98 #492C98
monochromatic
#393011 #69571E #987F2C #C6A63B #D4BC6A

Accessibility & contrast

On white

3.88
#987F2C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.41
#987F2C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987F2C
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987F2C#FFFFFF#000000##000000
##987F2C1.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D21
Deuteranopia (green-blind)
#938430
Tritanopia (blue-blind)
#A4756E
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #987f2c;
/* rgb */ color: rgb(152, 127, 44);
/* oklch */ color: oklch(60.4% 0.105 91.9);
Tailwind
colors: {
  custom: {
    50: '#baa36a',
    500: '#987f2c',
    950: '#000000',
  },
}
SCSS
$custom: #987f2c;
$custom-light: #baa36a;
$custom-dark: #000000;
JSON
{
  "hex": "#987f2c",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 44
  },
  "hsl": {
    "h": 46.111,
    "s": 55.102,
    "l": 38.431
  },
  "oklch": {
    "l": 0.60418,
    "c": 0.10471,
    "h": 91.9
  },
  "luminance": 0.22036
}

Semantic roles & 50–950 ramp

primary
#987F2C
secondary
#6579BB
accent
#6CDE49
background
#FBFAF6
surface
#F7F3EB
border
#D0CDC6
text
#120F07
muted
#817F7A

Preview Lab

Preview with #987F2C

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

Preview Lab → · Contrast checker → · Palette generator →

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