#987A21#987A21

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

Color values

HEX#987A21
RGBrgb(152, 122, 33)
HSLhsl(45, 64%, 36%)
HSVhsv(45, 78%, 60%)
CMYKcmyk(0%, 19.7%, 78.3%, 40.4%)
CIE-LABlab(52.63, 2.50, 49.83)
CIE-LCHlch(52.63, 49.90, 87.12°)
OKLaboklab(59.26% 0.0017 0.109)
OKLCHoklch(59.26% 0.109 89.1)
XYZxyz(20.1842, 20.7056, 4.3720)
Luminance0.2070 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987A21 #213F98
analogous
#983F21 #987A21 #7B9821
triadic
#987A21 #21987A #7A2198
tetradic
#987A21 #21983F #213F98 #98217B
square
#987A21 #21983F #213F98 #98217B
split-complementary
#987A21 #217B98 #3F2198
monochromatic
#33290B #665216 #987A21 #CAA22C #DBBA59

Accessibility & contrast

On white

4.08
#987A21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##987A21#FFFFFF#000000##000000
##987A211.004.085.145.14
#FFFFFF4.081.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#897911
Deuteranopia (green-blind)
#908126
Tritanopia (blue-blind)
#A56F69
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #987a21;
/* rgb */ color: rgb(152, 122, 33);
/* oklch */ color: oklch(59.3% 0.109 89.1);
Tailwind
colors: {
  custom: {
    50: '#baa064',
    500: '#987a21',
    950: '#000000',
  },
}
SCSS
$custom: #987a21;
$custom-light: #baa064;
$custom-dark: #000000;
JSON
{
  "hex": "#987a21",
  "rgb": {
    "r": 152,
    "g": 122,
    "b": 33
  },
  "hsl": {
    "h": 44.874,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.59257,
    "c": 0.109,
    "h": 89.1
  },
  "luminance": 0.20704
}

Semantic roles & 50–950 ramp

primary
#987A21
secondary
#5670BF
accent
#6BE740
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#120E06
muted
#817E7A

Preview Lab

Preview with #987A21

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

Preview Lab → · Contrast checker → · Palette generator →

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