#987CA2#987CA2

#987CA2 is a light, moderate purple. Relative luminance 0.237; OKLCH L 62.6% C 0.065 H 317.1°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#987CA2
RGBrgb(152, 124, 162)
HSLhsl(284, 17%, 56%)
HSVhsv(284, 23%, 64%)
CMYKcmyk(6.2%, 23.5%, 0%, 36.5%)
CIE-LABlab(55.79, 17.95, -16.23)
CIE-LCHlch(55.79, 24.20, 317.88°)
OKLaboklab(62.58% 0.0473 -0.0439)
OKLCHoklch(62.58% 0.065 317.1)
XYZxyz(26.6772, 23.6998, 37.3446)
Luminance0.2370 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987CA2 #86A27C
analogous
#857CA2 #987CA2 #A27C99
triadic
#987CA2 #A2987C #7CA298
tetradic
#987CA2 #A2857C #86A27C #7C99A2
square
#987CA2 #A2857C #86A27C #7C99A2
split-complementary
#987CA2 #99A27C #7CA285
monochromatic
#584460 #795D83 #987CA2 #B4A0BB #D0C4D5

Accessibility & contrast

On white

3.66
#987CA2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#987CA2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987CA2
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987CA2#FFFFFF#000000##000000
##987CA21.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7784A4
Deuteranopia (green-blind)
#7D87A1
Tritanopia (blue-blind)
#988089
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #987ca2;
/* rgb */ color: rgb(152, 124, 162);
/* oklch */ color: oklch(62.6% 0.065 317.1);
Tailwind
colors: {
  custom: {
    50: '#b6a2bd',
    500: '#987ca2',
    950: '#000000',
  },
}
SCSS
$custom: #987ca2;
$custom-light: #b6a2bd;
$custom-dark: #000000;
JSON
{
  "hex": "#987ca2",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 162
  },
  "hsl": {
    "h": 284.211,
    "s": 16.964,
    "l": 56.078
  },
  "oklch": {
    "l": 0.62581,
    "c": 0.06453,
    "h": 317.1
  },
  "luminance": 0.23699
}

Semantic roles & 50–950 ramp

primary
#987CA2
secondary
#B9C5B5
accent
#BA6E82
background
#FBF9FB
surface
#F6F2F6
border
#D0CCD0
text
#110F12
muted
#807E81

Preview Lab

Preview with #987CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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