#987AA2#987AA2

#987AA2 is a light, moderate purple. Relative luminance 0.232; OKLCH L 62.2% C 0.068 H 317.6°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#987AA2
RGBrgb(152, 122, 162)
HSLhsl(285, 18%, 56%)
HSVhsv(285, 25%, 64%)
CMYKcmyk(6.2%, 24.7%, 0%, 36.5%)
CIE-LABlab(55.28, 19.10, -16.99)
CIE-LCHlch(55.28, 25.57, 318.34°)
OKLaboklab(62.19% 0.0504 -0.0461)
OKLCHoklch(62.19% 0.068 317.6)
XYZxyz(26.4291, 23.2036, 37.2619)
Luminance0.2320 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987AA2 #84A27A
analogous
#847AA2 #987AA2 #A27A98
triadic
#987AA2 #A2987A #7AA298
tetradic
#987AA2 #A2847A #84A27A #7A98A2
square
#987AA2 #A2847A #84A27A #7A98A2
split-complementary
#987AA2 #98A27A #7AA284
monochromatic
#58425F #795C83 #987AA2 #B49EBB #D0C2D4

Accessibility & contrast

On white

3.72
#987AA2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.64
#987AA2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987AA2
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987AA2#FFFFFF#000000##000000
##987AA21.003.725.645.64
#FFFFFF3.721.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7582A4
Deuteranopia (green-blind)
#7C85A1
Tritanopia (blue-blind)
#987E88
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #987aa2;
/* rgb */ color: rgb(152, 122, 162);
/* oklch */ color: oklch(62.2% 0.068 317.6);
Tailwind
colors: {
  custom: {
    50: '#b6a0bd',
    500: '#987aa2',
    950: '#000000',
  },
}
SCSS
$custom: #987aa2;
$custom-light: #b6a0bd;
$custom-dark: #000000;
JSON
{
  "hex": "#987aa2",
  "rgb": {
    "r": 152,
    "g": 122,
    "b": 162
  },
  "hsl": {
    "h": 285,
    "s": 17.699,
    "l": 55.686
  },
  "oklch": {
    "l": 0.62193,
    "c": 0.06828,
    "h": 317.6
  },
  "luminance": 0.23203
}

Semantic roles & 50–950 ramp

primary
#987AA2
secondary
#B8C4B4
accent
#BA6D81
background
#FBF9FB
surface
#F6F2F6
border
#D0CCD0
text
#110E12
muted
#807E81

Preview Lab

Preview with #987AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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