#987C1E#987C1E

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

Color values

HEX#987C1E
RGBrgb(152, 124, 30)
HSLhsl(46, 67%, 36%)
HSVhsv(46, 80%, 60%)
CMYKcmyk(0%, 18.4%, 80.3%, 40.4%)
CIE-LABlab(53.15, 1.26, 51.42)
CIE-LCHlch(53.15, 51.44, 88.60°)
OKLaboklab(59.67% -0.0022 0.1117)
OKLCHoklch(59.67% 0.112 91.1)
XYZxyz(20.3921, 21.1857, 4.2432)
Luminance0.2118 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987C1E #1E3A98
analogous
#983F1E #987C1E #77981E
triadic
#987C1E #1E987C #7C1E98
tetradic
#987C1E #1E983F #1E3A98 #981E77
square
#987C1E #1E983F #1E3A98 #981E77
split-complementary
#987C1E #1E7798 #3F1E98
monochromatic
#32290A #655214 #987C1E #CBA628 #DDBD53

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##987C1E#FFFFFF#000000##000000
##987C1E1.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)
#8B7A09
Deuteranopia (green-blind)
#928224
Tritanopia (blue-blind)
#A5716A
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #987c1e;
/* rgb */ color: rgb(152, 124, 30);
/* oklch */ color: oklch(59.7% 0.112 91.1);
Tailwind
colors: {
  custom: {
    50: '#baa162',
    500: '#987c1e',
    950: '#000000',
  },
}
SCSS
$custom: #987c1e;
$custom-light: #baa162;
$custom-dark: #000000;
JSON
{
  "hex": "#987c1e",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 30
  },
  "hsl": {
    "h": 46.23,
    "s": 67.033,
    "l": 35.686
  },
  "oklch": {
    "l": 0.59666,
    "c": 0.11175,
    "h": 91.1
  },
  "luminance": 0.21184
}

Semantic roles & 50–950 ramp

primary
#987C1E
secondary
#516BC0
accent
#65EA3E
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#120E05
muted
#817E7A

Preview Lab

Preview with #987C1E

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

Preview Lab → · Contrast checker → · Palette generator →

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