#987D1E#987D1E

#987D1E is a mid, moderate yellow. Relative luminance 0.214; OKLCH L 59.9% C 0.112 H 92.0°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#987D1E
RGBrgb(152, 125, 30)
HSLhsl(47, 67%, 36%)
HSVhsv(47, 80%, 60%)
CMYKcmyk(0%, 17.8%, 80.3%, 40.4%)
CIE-LABlab(53.43, 0.69, 51.67)
CIE-LCHlch(53.43, 51.67, 89.23°)
OKLaboklab(59.88% -0.0038 0.1123)
OKLCHoklch(59.88% 0.112 92)
XYZxyz(20.5181, 21.4376, 4.2852)
Luminance0.2144 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987D1E #1E3998
analogous
#98401E #987D1E #76981E
triadic
#987D1E #1E987D #7D1E98
tetradic
#987D1E #1E9840 #1E3998 #981E76
square
#987D1E #1E9840 #1E3998 #981E76
split-complementary
#987D1E #1E7698 #401E98
monochromatic
#32290A #655314 #987D1E #CBA728 #DDBF53

Accessibility & contrast

On white

3.97
#987D1E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#987D1E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987D1E
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987D1E#FFFFFF#000000##000000
##987D1E1.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B08
Deuteranopia (green-blind)
#928324
Tritanopia (blue-blind)
#A5726B
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #987d1e;
/* rgb */ color: rgb(152, 125, 30);
/* oklch */ color: oklch(59.9% 0.112 92.0);
Tailwind
colors: {
  custom: {
    50: '#baa262',
    500: '#987d1e',
    950: '#000000',
  },
}
SCSS
$custom: #987d1e;
$custom-light: #baa262;
$custom-dark: #000000;
JSON
{
  "hex": "#987d1e",
  "rgb": {
    "r": 152,
    "g": 125,
    "b": 30
  },
  "hsl": {
    "h": 46.721,
    "s": 67.033,
    "l": 35.686
  },
  "oklch": {
    "l": 0.59881,
    "c": 0.11234,
    "h": 92
  },
  "luminance": 0.21436
}

Semantic roles & 50–950 ramp

primary
#987D1E
secondary
#516AC0
accent
#64EA3E
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#120F06
muted
#817E7A

Preview Lab

Preview with #987D1E

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

Preview Lab → · Contrast checker → · Palette generator →

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