#987DDE#987DDE

#987DDE is a light, vivid violet. Relative luminance 0.266; OKLCH L 65.6% C 0.142 H 295.0°. Best body text is #000000 at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#987DDE
RGBrgb(152, 125, 222)
HSLhsl(257, 60%, 68%)
HSVhsv(257, 44%, 87%)
CMYKcmyk(31.5%, 43.7%, 0%, 12.9%)
CIE-LABlab(58.62, 31.44, -45.97)
CIE-LCHlch(58.62, 55.69, 304.37°)
OKLaboklab(65.59% 0.0602 -0.1291)
OKLCHoklch(65.59% 0.142 295)
XYZxyz(33.4640, 26.6160, 72.4674)
Luminance0.2662 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987DDE #C3DE7D
analogous
#7D92DE #987DDE #C87DDE
triadic
#987DDE #DE987D #7DDE98
tetradic
#987DDE #DE7D92 #C3DE7D #7DDEC8
square
#987DDE #DE7D92 #C3DE7D #7DDEC8
split-complementary
#987DDE #DEC87D #92DE7D
monochromatic
#532DB3 #714CD2 #987DDE #BFAEEA #E5DFF7

Accessibility & contrast

On white

3.32
#987DDE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.32
#987DDE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987DDE
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987DDE#FFFFFF#000000##000000
##987DDE1.003.326.326.32
#FFFFFF3.321.0021.0021.00
#0000006.3221.001.001.00
##0000006.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F8EE2
Deuteranopia (green-blind)
#638CDC
Tritanopia (blue-blind)
#888FA3
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #987dde;
/* rgb */ color: rgb(152, 125, 222);
/* oklch */ color: oklch(65.6% 0.142 295.0);
Tailwind
colors: {
  custom: {
    50: '#b9a3e9',
    500: '#987dde',
    950: '#000000',
  },
}
SCSS
$custom: #987dde;
$custom-light: #b9a3e9;
$custom-dark: #000000;
JSON
{
  "hex": "#987dde",
  "rgb": {
    "r": 152,
    "g": 125,
    "b": 222
  },
  "hsl": {
    "h": 256.701,
    "s": 59.509,
    "l": 68.039
  },
  "oklch": {
    "l": 0.65587,
    "c": 0.1424,
    "h": 295
  },
  "luminance": 0.26617
}

Semantic roles & 50–950 ramp

primary
#987DDE
secondary
#E2EACD
accent
#C71E98
background
#FBFAFE
surface
#F6F3FD
border
#D0CDD5
text
#120F16
muted
#817F84

Preview Lab

Preview with #987DDE

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

Preview Lab → · Contrast checker → · Palette generator →

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