#987A1D#987A1D

#987A1D is a mid, moderate yellow. Relative luminance 0.207; OKLCH L 59.2% C 0.111 H 89.6°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#987A1D
RGBrgb(152, 122, 29)
HSLhsl(45, 68%, 35%)
HSVhsv(45, 81%, 60%)
CMYKcmyk(0%, 19.7%, 80.9%, 40.4%)
CIE-LABlab(52.60, 2.34, 51.28)
CIE-LCHlch(52.60, 51.33, 87.38°)
OKLaboklab(59.23% 0.0008 0.1112)
OKLCHoklch(59.23% 0.111 89.6)
XYZxyz(20.1314, 20.6845, 4.0943)
Luminance0.2068 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987A1D #1D3B98
analogous
#983C1D #987A1D #78981D
triadic
#987A1D #1D987A #7A1D98
tetradic
#987A1D #1D983C #1D3B98 #981D78
square
#987A1D #1D983C #1D3B98 #981D78
split-complementary
#987A1D #1D7898 #3C1D98
monochromatic
#312709 #655113 #987A1D #CBA327 #DEBC52

Accessibility & contrast

On white

4.09
#987A1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#987A1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987A1D
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987A1D#FFFFFF#000000##000000
##987A1D1.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#897908
Deuteranopia (green-blind)
#908123
Tritanopia (blue-blind)
#A56F68
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #987a1d;
/* rgb */ color: rgb(152, 122, 29);
/* oklch */ color: oklch(59.2% 0.111 89.6);
Tailwind
colors: {
  custom: {
    50: '#bba062',
    500: '#987a1d',
    950: '#000000',
  },
}
SCSS
$custom: #987a1d;
$custom-light: #bba062;
$custom-dark: #000000;
JSON
{
  "hex": "#987a1d",
  "rgb": {
    "r": 152,
    "g": 122,
    "b": 29
  },
  "hsl": {
    "h": 45.366,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.59231,
    "c": 0.1112,
    "h": 89.6
  },
  "luminance": 0.20683
}

Semantic roles & 50–950 ramp

primary
#987A1D
secondary
#506CC1
accent
#67EB3D
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#120E05
muted
#817E7A

Preview Lab

Preview with #987A1D

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

Preview Lab → · Contrast checker → · Palette generator →

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