#987B1F#987B1F

#987B1F is a mid, moderate yellow. Relative luminance 0.209; OKLCH L 59.5% C 0.111 H 90.2°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#987B1F
RGBrgb(152, 123, 31)
HSLhsl(46, 66%, 36%)
HSVhsv(46, 80%, 60%)
CMYKcmyk(0%, 19.1%, 79.6%, 40.4%)
CIE-LABlab(52.89, 1.86, 50.82)
CIE-LCHlch(52.89, 50.85, 87.91°)
OKLaboklab(59.46% -0.0004 0.1107)
OKLCHoklch(59.46% 0.111 90.2)
XYZxyz(20.2804, 20.9416, 4.2700)
Luminance0.2094 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987B1F #1F3C98
analogous
#983E1F #987B1F #78981F
triadic
#987B1F #1F987B #7B1F98
tetradic
#987B1F #1F983E #1F3C98 #981F78
square
#987B1F #1F983E #1F3C98 #981F78
split-complementary
#987B1F #1F7898 #3E1F98
monochromatic
#32290A #655215 #987B1F #CBA429 #DCBC55

Accessibility & contrast

On white

4.05
#987B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#987B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987B1F
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987B1F#FFFFFF#000000##000000
##987B1F1.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A0C
Deuteranopia (green-blind)
#918225
Tritanopia (blue-blind)
#A57069
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #987b1f;
/* rgb */ color: rgb(152, 123, 31);
/* oklch */ color: oklch(59.5% 0.111 90.2);
Tailwind
colors: {
  custom: {
    50: '#baa063',
    500: '#987b1f',
    950: '#000000',
  },
}
SCSS
$custom: #987b1f;
$custom-light: #baa063;
$custom-dark: #000000;
JSON
{
  "hex": "#987b1f",
  "rgb": {
    "r": 152,
    "g": 123,
    "b": 31
  },
  "hsl": {
    "h": 45.62,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.59458,
    "c": 0.11066,
    "h": 90.2
  },
  "luminance": 0.2094
}

Semantic roles & 50–950 ramp

primary
#987B1F
secondary
#536DC0
accent
#68E93F
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#120E06
muted
#817E7A

Preview Lab

Preview with #987B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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