#987AE6#987AE6

#987AE6 is a light, vivid violet. Relative luminance 0.263; OKLCH L 65.5% C 0.158 H 294.4°. Best body text is #000000 at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#987AE6
RGBrgb(152, 122, 230)
HSLhsl(257, 68%, 69%)
HSVhsv(257, 47%, 90%)
CMYKcmyk(33.9%, 47%, 0%, 9.8%)
CIE-LABlab(58.33, 35.21, -50.90)
CIE-LCHlch(58.33, 61.89, 304.68°)
OKLaboklab(65.5% 0.0652 -0.1434)
OKLCHoklch(65.5% 0.158 294.4)
XYZxyz(34.1877, 26.3070, 78.1241)
Luminance0.2631 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987AE6 #C8E67A
analogous
#7A92E6 #987AE6 #CE7AE6
triadic
#987AE6 #E6987A #7AE698
tetradic
#987AE6 #E67A92 #C8E67A #7AE6CE
square
#987AE6 #E67A92 #C8E67A #7AE6CE
split-complementary
#987AE6 #E6CE7A #92E67A
monochromatic
#5024C1 #7046DC #987AE6 #C0AEF0 #E8E1F9

Accessibility & contrast

On white

3.35
#987AE6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.26
#987AE6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987AE6
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987AE6#FFFFFF#000000##000000
##987AE61.003.356.266.26
#FFFFFF3.351.0021.0021.00
#0000006.2621.001.001.00
##0000006.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#558DEA
Deuteranopia (green-blind)
#5A8BE3
Tritanopia (blue-blind)
#868FA5
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #987ae6;
/* rgb */ color: rgb(152, 122, 230);
/* oklch */ color: oklch(65.5% 0.158 294.4);
Tailwind
colors: {
  custom: {
    50: '#b9a1ee',
    500: '#987ae6',
    950: '#000000',
  },
}
SCSS
$custom: #987ae6;
$custom-light: #b9a1ee;
$custom-dark: #000000;
JSON
{
  "hex": "#987ae6",
  "rgb": {
    "r": 152,
    "g": 122,
    "b": 230
  },
  "hsl": {
    "h": 256.667,
    "s": 68.354,
    "l": 69.02
  },
  "oklch": {
    "l": 0.65503,
    "c": 0.15757,
    "h": 294.4
  },
  "luminance": 0.26308
}

Semantic roles & 50–950 ramp

primary
#987AE6
secondary
#E5EECE
accent
#D0159C
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#120F16
muted
#817E84

Preview Lab

Preview with #987AE6

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

Preview Lab → · Contrast checker → · Palette generator →

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