#987A20#987A20

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

Color values

HEX#987A20
RGBrgb(152, 122, 32)
HSLhsl(45, 65%, 36%)
HSVhsv(45, 79%, 60%)
CMYKcmyk(0%, 19.7%, 78.9%, 40.4%)
CIE-LABlab(52.62, 2.46, 50.20)
CIE-LCHlch(52.62, 50.27, 87.19°)
OKLaboklab(59.25% 0.0014 0.1096)
OKLCHoklch(59.25% 0.11 89.3)
XYZxyz(20.1704, 20.7001, 4.2994)
Luminance0.2070 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987A20 #203E98
analogous
#983E20 #987A20 #7A9820
triadic
#987A20 #20987A #7A2098
tetradic
#987A20 #20983E #203E98 #98207A
square
#987A20 #20983E #203E98 #98207A
split-complementary
#987A20 #207A98 #3E2098
monochromatic
#33290B #655115 #987A20 #CBA32B #DCBA57

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##987A20#FFFFFF#000000##000000
##987A201.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)
#89790F
Deuteranopia (green-blind)
#908125
Tritanopia (blue-blind)
#A56F69
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #987a20;
/* rgb */ color: rgb(152, 122, 32);
/* oklch */ color: oklch(59.3% 0.110 89.3);
Tailwind
colors: {
  custom: {
    50: '#baa063',
    500: '#987a20',
    950: '#000000',
  },
}
SCSS
$custom: #987a20;
$custom-light: #baa063;
$custom-dark: #000000;
JSON
{
  "hex": "#987a20",
  "rgb": {
    "r": 152,
    "g": 122,
    "b": 32
  },
  "hsl": {
    "h": 45,
    "s": 65.217,
    "l": 36.078
  },
  "oklch": {
    "l": 0.5925,
    "c": 0.10958,
    "h": 89.3
  },
  "luminance": 0.20699
}

Semantic roles & 50–950 ramp

primary
#987A20
secondary
#546FBF
accent
#6AE840
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#120E06
muted
#817E7A

Preview Lab

Preview with #987A20

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

Preview Lab → · Contrast checker → · Palette generator →

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