#987C1F#987C1F

#987C1F is a mid, moderate yellow. Relative luminance 0.212; OKLCH L 59.7% C 0.111 H 91.0°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#987C1F
RGBrgb(152, 124, 31)
HSLhsl(46, 66%, 36%)
HSVhsv(46, 80%, 60%)
CMYKcmyk(0%, 18.4%, 79.6%, 40.4%)
CIE-LABlab(53.16, 1.30, 51.07)
CIE-LCHlch(53.16, 51.08, 88.55°)
OKLaboklab(59.67% -0.002 0.1112)
OKLCHoklch(59.67% 0.111 91)
XYZxyz(20.4051, 21.1909, 4.3116)
Luminance0.2119 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987C1F #1F3B98
analogous
#98401F #987C1F #77981F
triadic
#987C1F #1F987C #7C1F98
tetradic
#987C1F #1F9840 #1F3B98 #981F77
square
#987C1F #1F9840 #1F3B98 #981F77
split-complementary
#987C1F #1F7798 #401F98
monochromatic
#32290A #655315 #987C1F #CBA529 #DCBD55

Accessibility & contrast

On white

4.01
#987C1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#987C1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987C1F
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987C1F#FFFFFF#000000##000000
##987C1F1.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A0B
Deuteranopia (green-blind)
#928225
Tritanopia (blue-blind)
#A5716A
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #987c1f;
/* rgb */ color: rgb(152, 124, 31);
/* oklch */ color: oklch(59.7% 0.111 91.0);
Tailwind
colors: {
  custom: {
    50: '#baa163',
    500: '#987c1f',
    950: '#000000',
  },
}
SCSS
$custom: #987c1f;
$custom-light: #baa163;
$custom-dark: #000000;
JSON
{
  "hex": "#987c1f",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 31
  },
  "hsl": {
    "h": 46.116,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.59672,
    "c": 0.11122,
    "h": 91
  },
  "luminance": 0.2119
}

Semantic roles & 50–950 ramp

primary
#987C1F
secondary
#536CC0
accent
#66E93F
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#120E06
muted
#817E7A

Preview Lab

Preview with #987C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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