#987AD5#987AD5

#987AD5 is a light, vivid violet. Relative luminance 0.254; OKLCH L 64.6% C 0.135 H 297.7°. Best body text is #000000 at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#987AD5
RGBrgb(152, 122, 213)
HSLhsl(260, 52%, 66%)
HSVhsv(260, 43%, 84%)
CMYKcmyk(28.6%, 42.7%, 0%, 16.5%)
CIE-LABlab(57.46, 30.89, -42.74)
CIE-LCHlch(57.46, 52.73, 305.85°)
OKLaboklab(64.57% 0.0628 -0.1197)
OKLCHoklch(64.57% 0.135 297.7)
XYZxyz(31.9158, 25.3983, 66.1588)
Luminance0.2540 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987AD5 #B7D57A
analogous
#7A89D5 #987AD5 #C57AD5
triadic
#987AD5 #D5987A #7AD598
tetradic
#987AD5 #D57A89 #B7D57A #7AD5C5
square
#987AD5 #D57A89 #B7D57A #7AD5C5
split-complementary
#987AD5 #D5C57A #89D57A
monochromatic
#5733A2 #744BC6 #987AD5 #BCA9E4 #E0D7F2

Accessibility & contrast

On white

3.45
#987AD5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.08
#987AD5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987AD5
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987AD5#FFFFFF#000000##000000
##987AD51.003.456.086.08
#FFFFFF3.451.0021.0021.00
#0000006.0821.001.001.00
##0000006.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#608AD8
Deuteranopia (green-blind)
#6589D3
Tritanopia (blue-blind)
#8C8A9D
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #987ad5;
/* rgb */ color: rgb(152, 122, 213);
/* oklch */ color: oklch(64.6% 0.135 297.7);
Tailwind
colors: {
  custom: {
    50: '#b8a1e2',
    500: '#987ad5',
    950: '#000000',
  },
}
SCSS
$custom: #987ad5;
$custom-light: #b8a1e2;
$custom-dark: #000000;
JSON
{
  "hex": "#987ad5",
  "rgb": {
    "r": 152,
    "g": 122,
    "b": 213
  },
  "hsl": {
    "h": 259.78,
    "s": 52,
    "l": 65.686
  },
  "oklch": {
    "l": 0.6457,
    "c": 0.13514,
    "h": 297.7
  },
  "luminance": 0.25399
}

Semantic roles & 50–950 ramp

primary
#987AD5
secondary
#DBE5C6
accent
#BF268D
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#120F15
muted
#817E83

Preview Lab

Preview with #987AD5

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

Preview Lab → · Contrast checker → · Palette generator →

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