#987AE3#987AE3

#987AE3 is a light, vivid violet. Relative luminance 0.261; OKLCH L 65.3% C 0.154 H 295.0°. Best body text is #000000 at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#987AE3
RGBrgb(152, 122, 227)
HSLhsl(257, 65%, 68%)
HSVhsv(257, 46%, 89%)
CMYKcmyk(33%, 46.3%, 0%, 11%)
CIE-LABlab(58.17, 34.44, -49.47)
CIE-LCHlch(58.17, 60.28, 304.84°)
OKLaboklab(65.33% 0.0648 -0.1393)
OKLCHoklch(65.33% 0.154 295)
XYZxyz(33.7701, 26.1400, 75.9245)
Luminance0.2614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987AE3 #C5E37A
analogous
#7A90E3 #987AE3 #CC7AE3
triadic
#987AE3 #E3987A #7AE398
tetradic
#987AE3 #E37A90 #C5E37A #7AE3CC
square
#987AE3 #E37A90 #C5E37A #7AE3CC
split-complementary
#987AE3 #E3CC7A #90E37A
monochromatic
#5227BB #7147D8 #987AE3 #BFADEE #E6DFF8

Accessibility & contrast

On white

3.37
#987AE3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.23
#987AE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987AE3
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987AE3#FFFFFF#000000##000000
##987AE31.003.376.236.23
#FFFFFF3.371.0021.0021.00
#0000006.2321.001.001.00
##0000006.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#578DE7
Deuteranopia (green-blind)
#5C8AE0
Tritanopia (blue-blind)
#878EA4
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #987ae3;
/* rgb */ color: rgb(152, 122, 227);
/* oklch */ color: oklch(65.3% 0.154 295.0);
Tailwind
colors: {
  custom: {
    50: '#b9a1ec',
    500: '#987ae3',
    950: '#000000',
  },
}
SCSS
$custom: #987ae3;
$custom-light: #b9a1ec;
$custom-dark: #000000;
JSON
{
  "hex": "#987ae3",
  "rgb": {
    "r": 152,
    "g": 122,
    "b": 227
  },
  "hsl": {
    "h": 257.143,
    "s": 65.217,
    "l": 68.431
  },
  "oklch": {
    "l": 0.65334,
    "c": 0.15364,
    "h": 295
  },
  "luminance": 0.26141
}

Semantic roles & 50–950 ramp

primary
#987AE3
secondary
#E3ECCD
accent
#CD1899
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#120F16
muted
#817E84

Preview Lab

Preview with #987AE3

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

Preview Lab → · Contrast checker → · Palette generator →

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