#987C1D#987C1D

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

Color values

HEX#987C1D
RGBrgb(152, 124, 29)
HSLhsl(46, 68%, 35%)
HSVhsv(46, 81%, 60%)
CMYKcmyk(0%, 18.4%, 80.9%, 40.4%)
CIE-LABlab(53.15, 1.22, 51.77)
CIE-LCHlch(53.15, 51.78, 88.65°)
OKLaboklab(59.66% -0.0024 0.1123)
OKLCHoklch(59.66% 0.112 91.2)
XYZxyz(20.3795, 21.1807, 4.1770)
Luminance0.2118 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987C1D #1D3998
analogous
#983E1D #987C1D #77981D
triadic
#987C1D #1D987C #7C1D98
tetradic
#987C1D #1D983E #1D3998 #981D77
square
#987C1D #1D983E #1D3998 #981D77
split-complementary
#987C1D #1D7798 #3E1D98
monochromatic
#312809 #655213 #987C1D #CBA627 #DEBE52

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##987C1D#FFFFFF#000000##000000
##987C1D1.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)
#8B7A07
Deuteranopia (green-blind)
#928223
Tritanopia (blue-blind)
#A5716A
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #987c1d;
/* rgb */ color: rgb(152, 124, 29);
/* oklch */ color: oklch(59.7% 0.112 91.2);
Tailwind
colors: {
  custom: {
    50: '#baa162',
    500: '#987c1d',
    950: '#000000',
  },
}
SCSS
$custom: #987c1d;
$custom-light: #baa162;
$custom-dark: #000000;
JSON
{
  "hex": "#987c1d",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 29
  },
  "hsl": {
    "h": 46.341,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.5966,
    "c": 0.11229,
    "h": 91.2
  },
  "luminance": 0.21179
}

Semantic roles & 50–950 ramp

primary
#987C1D
secondary
#506AC1
accent
#65EB3D
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#120E05
muted
#817E7A

Preview Lab

Preview with #987C1D

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

Preview Lab → · Contrast checker → · Palette generator →

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