#9E87EA#9E87EA

#9E87EA is a light, vivid violet. Relative luminance 0.305; OKLCH L 68.6% C 0.143 H 292.9°. Best body text is #000000 at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#9E87EA
RGBrgb(158, 135, 234)
HSLhsl(254, 70%, 72%)
HSVhsv(254, 42%, 92%)
CMYKcmyk(32.5%, 42.3%, 0%, 8.2%)
CIE-LABlab(62.11, 30.38, -47.09)
CIE-LCHlch(62.11, 56.04, 302.83°)
OKLaboklab(68.55% 0.0559 -0.1322)
OKLCHoklch(68.55% 0.144 292.9)
XYZxyz(37.6120, 30.5368, 81.7385)
Luminance0.3054 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E87EA #D3EA87
analogous
#87A2EA #9E87EA #CF87EA
triadic
#9E87EA #EA9E87 #87EA9E
tetradic
#9E87EA #EA87A2 #D3EA87 #87EACF
square
#9E87EA #EA87A2 #D3EA87 #87EACF
split-complementary
#9E87EA #EACF87 #A2EA87
monochromatic
#4D25D2 #7453E1 #9E87EA #C8BBF3 #EAE5FA

Accessibility & contrast

On white

2.95
#9E87EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.11
#9E87EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9E87EA
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E87EA#FFFFFF#000000##000000
##9E87EA1.002.957.117.11
#FFFFFF2.951.0021.0021.00
#0000007.1121.001.001.00
##0000007.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6897EE
Deuteranopia (green-blind)
#6B94E8
Tritanopia (blue-blind)
#8C99AD
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #9e87ea;
/* rgb */ color: rgb(158, 135, 234);
/* oklch */ color: oklch(68.6% 0.143 292.9);
Tailwind
colors: {
  custom: {
    50: '#bdaaf1',
    500: '#9e87ea',
    950: '#000000',
  },
}
SCSS
$custom: #9e87ea;
$custom-light: #bdaaf1;
$custom-dark: #000000;
JSON
{
  "hex": "#9e87ea",
  "rgb": {
    "r": 158,
    "g": 135,
    "b": 234
  },
  "hsl": {
    "h": 253.939,
    "s": 70.213,
    "l": 72.353
  },
  "oklch": {
    "l": 0.68551,
    "c": 0.1435,
    "h": 292.9
  },
  "luminance": 0.30538
}

Semantic roles & 50–950 ramp

primary
#9E87EA
secondary
#ECF2D9
accent
#D213A6
background
#FBFAFE
surface
#F7F4FD
border
#D0CED5
text
#121017
muted
#817F85

Preview Lab

Preview with #9E87EA

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

Preview Lab → · Contrast checker → · Palette generator →

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