#987F2F#987F2F

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

Color values

HEX#987F2F
RGBrgb(152, 127, 47)
HSLhsl(46, 53%, 39%)
HSVhsv(46, 69%, 60%)
CMYKcmyk(0%, 16.4%, 69.1%, 40.4%)
CIE-LABlab(54.09, 0.41, 45.43)
CIE-LCHlch(54.09, 45.43, 89.49°)
OKLaboklab(60.45% -0.0027 0.1024)
OKLCHoklch(60.45% 0.102 91.5)
XYZxyz(21.0524, 22.0606, 5.8380)
Luminance0.2206 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987F2F #2F4898
analogous
#984B2F #987F2F #7D982F
triadic
#987F2F #2F987F #7F2F98
tetradic
#987F2F #2F984B #2F4898 #982F7D
square
#987F2F #2F984B #2F4898 #982F7D
split-complementary
#987F2F #2F7D98 #4B2F98
monochromatic
#3B3112 #695821 #987F2F #C4A540 #D2BB6F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##987F2F#FFFFFF#000000##000000
##987F2F1.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)
#8D7D25
Deuteranopia (green-blind)
#938433
Tritanopia (blue-blind)
#A4756E
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #987f2f;
/* rgb */ color: rgb(152, 127, 47);
/* oklch */ color: oklch(60.4% 0.102 91.5);
Tailwind
colors: {
  custom: {
    50: '#baa36c',
    500: '#987f2f',
    950: '#000000',
  },
}
SCSS
$custom: #987f2f;
$custom-light: #baa36c;
$custom-dark: #000000;
JSON
{
  "hex": "#987f2f",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 47
  },
  "hsl": {
    "h": 45.714,
    "s": 52.764,
    "l": 39.02
  },
  "oklch": {
    "l": 0.60445,
    "c": 0.10246,
    "h": 91.5
  },
  "luminance": 0.22059
}

Semantic roles & 50–950 ramp

primary
#987F2F
secondary
#697CBA
accent
#6EDC4C
background
#FBFAF6
surface
#F7F3EB
border
#D0CDC6
text
#120F07
muted
#817F7A

Preview Lab

Preview with #987F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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