#987FA4#987FA4

#987FA4 is a light, moderate purple. Relative luminance 0.245; OKLCH L 63.2% C 0.061 H 314.7°. Best body text is #000000 at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#987FA4
RGBrgb(152, 127, 164)
HSLhsl(281, 17%, 57%)
HSVhsv(281, 23%, 64%)
CMYKcmyk(7.3%, 22.6%, 0%, 35.7%)
CIE-LABlab(56.62, 16.63, -16.12)
CIE-LCHlch(56.62, 23.16, 315.90°)
OKLaboklab(63.25% 0.0432 -0.0436)
OKLCHoklch(63.25% 0.061 314.7)
XYZxyz(27.2380, 24.5348, 38.4156)
Luminance0.2453 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987FA4 #8BA47F
analogous
#867FA4 #987FA4 #A47F9E
triadic
#987FA4 #A4987F #7FA498
tetradic
#987FA4 #A4867F #8BA47F #7F9EA4
square
#987FA4 #A4867F #8BA47F #7F9EA4
split-complementary
#987FA4 #9EA47F #7FA486
monochromatic
#594663 #7A5F86 #987FA4 #B5A3BD #D2C7D7

Accessibility & contrast

On white

3.56
#987FA4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.91
#987FA4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987FA4
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987FA4#FFFFFF#000000##000000
##987FA41.003.565.915.91
#FFFFFF3.561.0021.0021.00
#0000005.9121.001.001.00
##0000005.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7A86A6
Deuteranopia (green-blind)
#7F89A3
Tritanopia (blue-blind)
#97838C
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #987fa4;
/* rgb */ color: rgb(152, 127, 164);
/* oklch */ color: oklch(63.2% 0.061 314.7);
Tailwind
colors: {
  custom: {
    50: '#b6a4bf',
    500: '#987fa4',
    950: '#000000',
  },
}
SCSS
$custom: #987fa4;
$custom-light: #b6a4bf;
$custom-dark: #000000;
JSON
{
  "hex": "#987fa4",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 164
  },
  "hsl": {
    "h": 280.541,
    "s": 16.895,
    "l": 57.059
  },
  "oklch": {
    "l": 0.63247,
    "c": 0.06143,
    "h": 314.7
  },
  "luminance": 0.24534
}

Semantic roles & 50–950 ramp

primary
#987FA4
secondary
#BDC7B8
accent
#BA6E87
background
#FBFAFB
surface
#F6F4F7
border
#D0CED0
text
#110F12
muted
#807F81

Preview Lab

Preview with #987FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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