#987B1D#987B1D

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

Color values

HEX#987B1D
RGBrgb(152, 123, 29)
HSLhsl(46, 68%, 35%)
HSVhsv(46, 81%, 60%)
CMYKcmyk(0%, 19.1%, 80.9%, 40.4%)
CIE-LABlab(52.87, 1.78, 51.52)
CIE-LCHlch(52.87, 51.55, 88.02°)
OKLaboklab(59.45% -0.0008 0.1117)
OKLCHoklch(59.45% 0.112 90.4)
XYZxyz(20.2548, 20.9313, 4.1355)
Luminance0.2093 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987B1D #1D3A98
analogous
#983E1D #987B1D #77981D
triadic
#987B1D #1D987B #7B1D98
tetradic
#987B1D #1D983E #1D3A98 #981D77
square
#987B1D #1D983E #1D3A98 #981D77
split-complementary
#987B1D #1D7798 #3E1D98
monochromatic
#312809 #655113 #987B1D #CBA527 #DEBD52

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##987B1D#FFFFFF#000000##000000
##987B1D1.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)
#8A7A07
Deuteranopia (green-blind)
#918223
Tritanopia (blue-blind)
#A57069
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #987b1d;
/* rgb */ color: rgb(152, 123, 29);
/* oklch */ color: oklch(59.4% 0.112 90.4);
Tailwind
colors: {
  custom: {
    50: '#bba062',
    500: '#987b1d',
    950: '#000000',
  },
}
SCSS
$custom: #987b1d;
$custom-light: #bba062;
$custom-dark: #000000;
JSON
{
  "hex": "#987b1d",
  "rgb": {
    "r": 152,
    "g": 123,
    "b": 29
  },
  "hsl": {
    "h": 45.854,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.59445,
    "c": 0.11173,
    "h": 90.4
  },
  "luminance": 0.2093
}

Semantic roles & 50–950 ramp

primary
#987B1D
secondary
#506BC1
accent
#66EB3D
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#120E05
muted
#817E7A

Preview Lab

Preview with #987B1D

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

Preview Lab → · Contrast checker → · Palette generator →

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