#987EDD#987EDD

#987EDD is a light, vivid violet. Relative luminance 0.268; OKLCH L 65.7% C 0.140 H 294.9°. Best body text is #000000 at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#987EDD
RGBrgb(152, 126, 221)
HSLhsl(256, 58%, 68%)
HSVhsv(256, 43%, 87%)
CMYKcmyk(31.2%, 43%, 0%, 13.3%)
CIE-LABlab(58.80, 30.60, -45.11)
CIE-LCHlch(58.80, 54.51, 304.15°)
OKLaboklab(65.71% 0.0587 -0.1266)
OKLCHoklch(65.71% 0.14 294.9)
XYZxyz(33.4576, 26.8171, 71.8061)
Luminance0.2682 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987EDD #C3DD7E
analogous
#7E93DD #987EDD #C77EDD
triadic
#987EDD #DD987E #7EDD98
tetradic
#987EDD #DD7E93 #C3DD7E #7EDDC7
square
#987EDD #DD7E93 #C3DD7E #7EDDC7
split-complementary
#987EDD #DDC77E #93DD7E
monochromatic
#532FB2 #714ED0 #987EDD #BFAEEA #E5DFF7

Accessibility & contrast

On white

3.30
#987EDD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.36
#987EDD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987EDD
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987EDD#FFFFFF#000000##000000
##987EDD1.003.306.366.36
#FFFFFF3.301.0021.0021.00
#0000006.3621.001.001.00
##0000006.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#618EE1
Deuteranopia (green-blind)
#658CDB
Tritanopia (blue-blind)
#898FA3
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #987edd;
/* rgb */ color: rgb(152, 126, 221);
/* oklch */ color: oklch(65.7% 0.140 294.9);
Tailwind
colors: {
  custom: {
    50: '#b9a3e8',
    500: '#987edd',
    950: '#000000',
  },
}
SCSS
$custom: #987edd;
$custom-light: #b9a3e8;
$custom-dark: #000000;
JSON
{
  "hex": "#987edd",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 221
  },
  "hsl": {
    "h": 256.421,
    "s": 58.282,
    "l": 68.039
  },
  "oklch": {
    "l": 0.65713,
    "c": 0.13951,
    "h": 294.9
  },
  "luminance": 0.26818
}

Semantic roles & 50–950 ramp

primary
#987EDD
secondary
#E2EACD
accent
#C62098
background
#FBFAFE
surface
#F6F4FC
border
#D0CED5
text
#120F16
muted
#817F84

Preview Lab

Preview with #987EDD

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

Preview Lab → · Contrast checker → · Palette generator →

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