#987DE2#987DE2

#987DE2 is a light, vivid violet. Relative luminance 0.268; OKLCH L 65.8% C 0.148 H 294.3°. Best body text is #000000 at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#987DE2
RGBrgb(152, 125, 226)
HSLhsl(256, 64%, 69%)
HSVhsv(256, 45%, 89%)
CMYKcmyk(32.7%, 44.7%, 0%, 11.4%)
CIE-LABlab(58.82, 32.46, -47.88)
CIE-LCHlch(58.82, 57.85, 304.13°)
OKLaboklab(65.81% 0.0608 -0.1346)
OKLCHoklch(65.81% 0.148 294.3)
XYZxyz(34.0065, 26.8330, 75.3244)
Luminance0.2683 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987DE2 #C7E27D
analogous
#7D95E2 #987DE2 #CB7DE2
triadic
#987DE2 #E2987D #7DE298
tetradic
#987DE2 #E27D95 #C7E27D #7DE2CB
square
#987DE2 #E27D95 #C7E27D #7DE2CB
split-complementary
#987DE2 #E2CB7D #95E27D
monochromatic
#512ABB #704BD7 #987DE2 #C0AFED #E7E1F8

Accessibility & contrast

On white

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

On black

6.37
#987DE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987DE2
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987DE2#FFFFFF#000000##000000
##987DE21.003.306.376.37
#FFFFFF3.301.0021.0021.00
#0000006.3721.001.001.00
##0000006.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C8FE6
Deuteranopia (green-blind)
#618CE0
Tritanopia (blue-blind)
#8790A5
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #987de2;
/* rgb */ color: rgb(152, 125, 226);
/* oklch */ color: oklch(65.8% 0.148 294.3);
Tailwind
colors: {
  custom: {
    50: '#b9a3eb',
    500: '#987de2',
    950: '#000000',
  },
}
SCSS
$custom: #987de2;
$custom-light: #b9a3eb;
$custom-dark: #000000;
JSON
{
  "hex": "#987de2",
  "rgb": {
    "r": 152,
    "g": 125,
    "b": 226
  },
  "hsl": {
    "h": 256.04,
    "s": 63.522,
    "l": 68.824
  },
  "oklch": {
    "l": 0.65806,
    "c": 0.14772,
    "h": 294.3
  },
  "luminance": 0.26834
}

Semantic roles & 50–950 ramp

primary
#987DE2
secondary
#E4ECCE
accent
#CB1A9C
background
#FBFAFE
surface
#F6F3FD
border
#D0CDD5
text
#120F16
muted
#817F84

Preview Lab

Preview with #987DE2

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

Preview Lab → · Contrast checker → · Palette generator →

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