#987DEE#987DEE

#987DEE is a light, vivid violet. Relative luminance 0.275; OKLCH L 66.5% C 0.164 H 292.4°. Best body text is #000000 at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#987DEE
RGBrgb(152, 125, 238)
HSLhsl(254, 77%, 71%)
HSVhsv(254, 47%, 93%)
CMYKcmyk(36.1%, 47.5%, 0%, 6.7%)
CIE-LABlab(59.45, 35.59, -53.57)
CIE-LCHlch(59.45, 64.31, 303.60°)
OKLaboklab(66.48% 0.0623 -0.1512)
OKLCHoklch(66.48% 0.164 292.4)
XYZxyz(35.7111, 27.5148, 84.3017)
Luminance0.2752 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987DEE #D3EE7D
analogous
#7D9AEE #987DEE #D07DEE
triadic
#987DEE #EE987D #7DEE98
tetradic
#987DEE #EE7D9A #D3EE7D #7DEED0
square
#987DEE #EE7D9A #D3EE7D #7DEED0
split-complementary
#987DEE #EED07D #9AEE7D
monochromatic
#481CD5 #6D47E7 #987DEE #C3B3F5 #EAE4FB

Accessibility & contrast

On white

3.23
#987DEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.50
#987DEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987DEE
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987DEE#FFFFFF#000000##000000
##987DEE1.003.236.506.50
#FFFFFF3.231.0021.0021.00
#0000006.5021.001.001.00
##0000006.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5491F2
Deuteranopia (green-blind)
#588DEB
Tritanopia (blue-blind)
#8393AA
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #987dee;
/* rgb */ color: rgb(152, 125, 238);
/* oklch */ color: oklch(66.5% 0.164 292.4);
Tailwind
colors: {
  custom: {
    50: '#baa3f4',
    500: '#987dee',
    950: '#000000',
  },
}
SCSS
$custom: #987dee;
$custom-light: #baa3f4;
$custom-dark: #000000;
JSON
{
  "hex": "#987dee",
  "rgb": {
    "r": 152,
    "g": 125,
    "b": 238
  },
  "hsl": {
    "h": 254.336,
    "s": 76.871,
    "l": 71.176
  },
  "oklch": {
    "l": 0.66482,
    "c": 0.16356,
    "h": 292.4
  },
  "luminance": 0.27516
}

Semantic roles & 50–950 ramp

primary
#987DEE
secondary
#EBF2D5
accent
#D90CA8
background
#FBFAFE
surface
#F7F4FD
border
#D0CED5
text
#120F17
muted
#817F85

Preview Lab

Preview with #987DEE

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

Preview Lab → · Contrast checker → · Palette generator →

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