#987D1F#987D1F

#987D1F is a mid, moderate yellow. Relative luminance 0.214; OKLCH L 59.9% C 0.112 H 91.9°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#987D1F
RGBrgb(152, 125, 31)
HSLhsl(47, 66%, 36%)
HSVhsv(47, 80%, 60%)
CMYKcmyk(0%, 17.8%, 79.6%, 40.4%)
CIE-LABlab(53.43, 0.73, 51.32)
CIE-LCHlch(53.43, 51.32, 89.18°)
OKLaboklab(59.89% -0.0036 0.1117)
OKLCHoklch(59.89% 0.112 91.9)
XYZxyz(20.5310, 21.4428, 4.3536)
Luminance0.2144 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987D1F #1F3A98
analogous
#98411F #987D1F #76981F
triadic
#987D1F #1F987D #7D1F98
tetradic
#987D1F #1F9841 #1F3A98 #981F76
square
#987D1F #1F9841 #1F3A98 #981F76
split-complementary
#987D1F #1F7698 #411F98
monochromatic
#32290A #655315 #987D1F #CBA729 #DCBE55

Accessibility & contrast

On white

3.97
#987D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#987D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987D1F
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987D1F#FFFFFF#000000##000000
##987D1F1.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B0B
Deuteranopia (green-blind)
#928325
Tritanopia (blue-blind)
#A5726B
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #987d1f;
/* rgb */ color: rgb(152, 125, 31);
/* oklch */ color: oklch(59.9% 0.112 91.9);
Tailwind
colors: {
  custom: {
    50: '#baa263',
    500: '#987d1f',
    950: '#000000',
  },
}
SCSS
$custom: #987d1f;
$custom-light: #baa263;
$custom-dark: #000000;
JSON
{
  "hex": "#987d1f",
  "rgb": {
    "r": 152,
    "g": 125,
    "b": 31
  },
  "hsl": {
    "h": 46.612,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.59888,
    "c": 0.11179,
    "h": 91.9
  },
  "luminance": 0.21442
}

Semantic roles & 50–950 ramp

primary
#987D1F
secondary
#536BC0
accent
#65E93F
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#120F06
muted
#817E7A

Preview Lab

Preview with #987D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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