#987F2B#987F2B

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

Color values

HEX#987F2B
RGBrgb(152, 127, 43)
HSLhsl(46, 56%, 38%)
HSVhsv(46, 72%, 60%)
CMYKcmyk(0%, 16.4%, 71.7%, 40.4%)
CIE-LABlab(54.06, 0.18, 47.16)
CIE-LCHlch(54.06, 47.16, 89.79°)
OKLaboklab(60.41% -0.0038 0.1054)
OKLCHoklch(60.41% 0.105 92.1)
XYZxyz(20.9754, 22.0298, 5.4324)
Luminance0.2203 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987F2B #2B4498
analogous
#98492B #987F2B #7A982B
triadic
#987F2B #2B987F #7F2B98
tetradic
#987F2B #2B9849 #2B4498 #982B7A
square
#987F2B #2B9849 #2B4498 #982B7A
split-complementary
#987F2B #2B7A98 #492B98
monochromatic
#392F10 #68571E #987F2B #C7A639 #D5BC69

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##987F2B#FFFFFF#000000##000000
##987F2B1.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)
#8D7D1F
Deuteranopia (green-blind)
#93842F
Tritanopia (blue-blind)
#A4756E
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #987f2b;
/* rgb */ color: rgb(152, 127, 43);
/* oklch */ color: oklch(60.4% 0.105 92.1);
Tailwind
colors: {
  custom: {
    50: '#baa369',
    500: '#987f2b',
    950: '#000000',
  },
}
SCSS
$custom: #987f2b;
$custom-light: #baa369;
$custom-dark: #000000;
JSON
{
  "hex": "#987f2b",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 43
  },
  "hsl": {
    "h": 46.239,
    "s": 55.897,
    "l": 38.235
  },
  "oklch": {
    "l": 0.60409,
    "c": 0.10544,
    "h": 92.1
  },
  "luminance": 0.22029
}

Semantic roles & 50–950 ramp

primary
#987F2B
secondary
#6478BB
accent
#6BDF49
background
#FBFAF6
surface
#F7F3EB
border
#D0CDC6
text
#120F07
muted
#817F7A

Preview Lab

Preview with #987F2B

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

Preview Lab → · Contrast checker → · Palette generator →

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