#987AEE#987AEE

#987AEE is a light, vivid violet. Relative luminance 0.268; OKLCH L 66.0% C 0.168 H 293.2°. Best body text is #000000 at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#987AEE
RGBrgb(152, 122, 238)
HSLhsl(256, 77%, 71%)
HSVhsv(256, 49%, 93%)
CMYKcmyk(36.1%, 48.7%, 0%, 6.7%)
CIE-LABlab(58.76, 37.30, -54.67)
CIE-LCHlch(58.76, 66.18, 304.30°)
OKLaboklab(65.96% 0.0661 -0.1545)
OKLCHoklch(65.96% 0.168 293.2)
XYZxyz(35.3370, 26.7667, 84.1770)
Luminance0.2677 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987AEE #D0EE7A
analogous
#7A96EE #987AEE #D27AEE
triadic
#987AEE #EE987A #7AEE98
tetradic
#987AEE #EE7A96 #D0EE7A #7AEED2
square
#987AEE #EE7A96 #D0EE7A #7AEED2
split-complementary
#987AEE #EED27A #96EE7A
monochromatic
#4A1BD3 #6E44E7 #987AEE #C2B0F5 #EAE4FC

Accessibility & contrast

On white

3.31
#987AEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.35
#987AEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987AEE
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987AEE#FFFFFF#000000##000000
##987AEE1.003.316.356.35
#FFFFFF3.311.0021.0021.00
#0000006.3521.001.001.00
##0000006.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F8FF2
Deuteranopia (green-blind)
#548BEB
Tritanopia (blue-blind)
#8391A9
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #987aee;
/* rgb */ color: rgb(152, 122, 238);
/* oklch */ color: oklch(66.0% 0.168 293.2);
Tailwind
colors: {
  custom: {
    50: '#baa1f4',
    500: '#987aee',
    950: '#000000',
  },
}
SCSS
$custom: #987aee;
$custom-light: #baa1f4;
$custom-dark: #000000;
JSON
{
  "hex": "#987aee",
  "rgb": {
    "r": 152,
    "g": 122,
    "b": 238
  },
  "hsl": {
    "h": 255.517,
    "s": 77.333,
    "l": 70.588
  },
  "oklch": {
    "l": 0.65965,
    "c": 0.168,
    "h": 293.2
  },
  "luminance": 0.26768
}

Semantic roles & 50–950 ramp

primary
#987AEE
secondary
#EAF2D2
accent
#DA0CA4
background
#FBF9FE
surface
#F7F2FD
border
#D0CCD5
text
#120F17
muted
#817E85

Preview Lab

Preview with #987AEE

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

Preview Lab → · Contrast checker → · Palette generator →

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