#987DEB#987DEB

#987DEB is a light, vivid violet. Relative luminance 0.273; OKLCH L 66.3% C 0.160 H 292.8°. Best body text is #000000 at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#987DEB
RGBrgb(152, 125, 235)
HSLhsl(255, 73%, 71%)
HSVhsv(255, 47%, 92%)
CMYKcmyk(35.3%, 46.8%, 0%, 7.8%)
CIE-LABlab(59.29, 34.80, -52.16)
CIE-LCHlch(59.29, 62.70, 303.71°)
OKLaboklab(66.31% 0.0619 -0.1471)
OKLCHoklch(66.31% 0.16 292.8)
XYZxyz(35.2740, 27.3400, 81.9998)
Luminance0.2734 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987DEB #D0EB7D
analogous
#7D99EB #987DEB #CF7DEB
triadic
#987DEB #EB987D #7DEB98
tetradic
#987DEB #EB7D99 #D0EB7D #7DEBCF
square
#987DEB #EB7D99 #D0EB7D #7DEBCF
split-complementary
#987DEB #EBCF7D #99EB7D
monochromatic
#4A20CE #6E48E3 #987DEB #C2B2F3 #EAE4FB

Accessibility & contrast

On white

3.25
#987DEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.47
#987DEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987DEB
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987DEB#FFFFFF#000000##000000
##987DEB1.003.256.476.47
#FFFFFF3.251.0021.0021.00
#0000006.4721.001.001.00
##0000006.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5690EF
Deuteranopia (green-blind)
#5A8DE8
Tritanopia (blue-blind)
#8492A9
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #987deb;
/* rgb */ color: rgb(152, 125, 235);
/* oklch */ color: oklch(66.3% 0.160 292.8);
Tailwind
colors: {
  custom: {
    50: '#baa3f2',
    500: '#987deb',
    950: '#000000',
  },
}
SCSS
$custom: #987deb;
$custom-light: #baa3f2;
$custom-dark: #000000;
JSON
{
  "hex": "#987deb",
  "rgb": {
    "r": 152,
    "g": 125,
    "b": 235
  },
  "hsl": {
    "h": 254.727,
    "s": 73.333,
    "l": 70.588
  },
  "oklch": {
    "l": 0.6631,
    "c": 0.15962,
    "h": 292.8
  },
  "luminance": 0.27341
}

Semantic roles & 50–950 ramp

primary
#987DEB
secondary
#EAF1D3
accent
#D510A5
background
#FBFAFE
surface
#F6F4FD
border
#D0CED5
text
#120F17
muted
#817F85

Preview Lab

Preview with #987DEB

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

Preview Lab → · Contrast checker → · Palette generator →

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