#9E87DD#9E87DD

#9E87DD is a light, vivid violet. Relative luminance 0.298; OKLCH L 67.9% C 0.126 H 295.1°. Best body text is #000000 at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#9E87DD
RGBrgb(158, 135, 221)
HSLhsl(256, 56%, 70%)
HSVhsv(256, 39%, 87%)
CMYKcmyk(28.5%, 38.9%, 0%, 13.3%)
CIE-LABlab(61.50, 27.10, -40.84)
CIE-LCHlch(61.50, 49.01, 303.57°)
OKLaboklab(67.88% 0.0535 -0.114)
OKLCHoklch(67.88% 0.126 295.1)
XYZxyz(35.8125, 29.8170, 72.2611)
Luminance0.2982 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E87DD #C6DD87
analogous
#879BDD #9E87DD #C987DD
triadic
#9E87DD #DD9E87 #87DD9E
tetradic
#9E87DD #DD879B #C6DD87 #87DDC9
square
#9E87DD #DD879B #C6DD87 #87DDC9
split-complementary
#9E87DD #DDC987 #9BDD87
monochromatic
#5634B6 #7757CF #9E87DD #C5B7EB #EBE6F8

Accessibility & contrast

On white

3.02
#9E87DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.96
#9E87DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E87DD
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E87DD#FFFFFF#000000##000000
##9E87DD1.003.026.966.96
#FFFFFF3.021.0021.0021.00
#0000006.9621.001.001.00
##0000006.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F95E0
Deuteranopia (green-blind)
#7293DB
Tritanopia (blue-blind)
#9196A7
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #9e87dd;
/* rgb */ color: rgb(158, 135, 221);
/* oklch */ color: oklch(67.9% 0.126 295.1);
Tailwind
colors: {
  custom: {
    50: '#bcaae8',
    500: '#9e87dd',
    950: '#000000',
  },
}
SCSS
$custom: #9e87dd;
$custom-light: #bcaae8;
$custom-dark: #000000;
JSON
{
  "hex": "#9e87dd",
  "rgb": {
    "r": 158,
    "g": 135,
    "b": 221
  },
  "hsl": {
    "h": 256.047,
    "s": 55.844,
    "l": 69.804
  },
  "oklch": {
    "l": 0.6788,
    "c": 0.12596,
    "h": 295.1
  },
  "luminance": 0.29818
}

Semantic roles & 50–950 ramp

primary
#9E87DD
secondary
#E6ECD4
accent
#C32298
background
#FBFAFE
surface
#F7F4FC
border
#D0CED5
text
#121016
muted
#817F84

Preview Lab

Preview with #9E87DD

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

Preview Lab → · Contrast checker → · Palette generator →

#9E87DD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva