#987A1E#987A1E

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

Color values

HEX#987A1E
RGBrgb(152, 122, 30)
HSLhsl(45, 67%, 36%)
HSVhsv(45, 80%, 60%)
CMYKcmyk(0%, 19.7%, 80.3%, 40.4%)
CIE-LABlab(52.61, 2.38, 50.93)
CIE-LCHlch(52.61, 50.98, 87.32°)
OKLaboklab(59.24% 0.001 0.1107)
OKLCHoklch(59.24% 0.111 89.5)
XYZxyz(20.1440, 20.6895, 4.1605)
Luminance0.2069 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987A1E #1E3C98
analogous
#983D1E #987A1E #79981E
triadic
#987A1E #1E987A #7A1E98
tetradic
#987A1E #1E983D #1E3C98 #981E79
square
#987A1E #1E983D #1E3C98 #981E79
split-complementary
#987A1E #1E7998 #3D1E98
monochromatic
#32280A #655114 #987A1E #CBA328 #DDBB53

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##987A1E#FFFFFF#000000##000000
##987A1E1.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)
#89790A
Deuteranopia (green-blind)
#908124
Tritanopia (blue-blind)
#A56F69
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #987a1e;
/* rgb */ color: rgb(152, 122, 30);
/* oklch */ color: oklch(59.2% 0.111 89.5);
Tailwind
colors: {
  custom: {
    50: '#baa062',
    500: '#987a1e',
    950: '#000000',
  },
}
SCSS
$custom: #987a1e;
$custom-light: #baa062;
$custom-dark: #000000;
JSON
{
  "hex": "#987a1e",
  "rgb": {
    "r": 152,
    "g": 122,
    "b": 30
  },
  "hsl": {
    "h": 45.246,
    "s": 67.033,
    "l": 35.686
  },
  "oklch": {
    "l": 0.59237,
    "c": 0.11067,
    "h": 89.5
  },
  "luminance": 0.20688
}

Semantic roles & 50–950 ramp

primary
#987A1E
secondary
#516DC0
accent
#68EA3E
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#120E05
muted
#817E7A

Preview Lab

Preview with #987A1E

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

Preview Lab → · Contrast checker → · Palette generator →

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