#987A1F#987A1F

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

Color values

HEX#987A1F
RGBrgb(152, 122, 31)
HSLhsl(45, 66%, 36%)
HSVhsv(45, 80%, 60%)
CMYKcmyk(0%, 19.7%, 79.6%, 40.4%)
CIE-LABlab(52.61, 2.42, 50.57)
CIE-LCHlch(52.61, 50.63, 87.26°)
OKLaboklab(59.24% 0.0012 0.1101)
OKLCHoklch(59.24% 0.11 89.4)
XYZxyz(20.1570, 20.6947, 4.2289)
Luminance0.2069 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987A1F #1F3D98
analogous
#983D1F #987A1F #79981F
triadic
#987A1F #1F987A #7A1F98
tetradic
#987A1F #1F983D #1F3D98 #981F79
square
#987A1F #1F983D #1F3D98 #981F79
split-complementary
#987A1F #1F7998 #3D1F98
monochromatic
#32280A #655115 #987A1F #CBA329 #DCBB55

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #987a1f;
/* rgb */ color: rgb(152, 122, 31);
/* oklch */ color: oklch(59.2% 0.110 89.4);
Tailwind
colors: {
  custom: {
    50: '#baa063',
    500: '#987a1f',
    950: '#000000',
  },
}
SCSS
$custom: #987a1f;
$custom-light: #baa063;
$custom-dark: #000000;
JSON
{
  "hex": "#987a1f",
  "rgb": {
    "r": 152,
    "g": 122,
    "b": 31
  },
  "hsl": {
    "h": 45.124,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.59243,
    "c": 0.11014,
    "h": 89.4
  },
  "luminance": 0.20693
}

Semantic roles & 50–950 ramp

primary
#987A1F
secondary
#536EC0
accent
#69E93F
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#120E06
muted
#817E7A

Preview Lab

Preview with #987A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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