#9E87FA#9E87FA

#9E87FA is a light, vivid violet. Relative luminance 0.315; OKLCH L 69.4% C 0.165 H 290.7°. Best body text is #000000 at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#9E87FA
RGBrgb(158, 135, 250)
HSLhsl(252, 92%, 75%)
HSVhsv(252, 46%, 98%)
CMYKcmyk(36.8%, 46%, 0%, 2%)
CIE-LABlab(62.93, 34.54, -54.63)
CIE-LCHlch(62.93, 64.63, 302.31°)
OKLaboklab(69.43% 0.0581 -0.1542)
OKLCHoklch(69.43% 0.165 290.7)
XYZxyz(40.0152, 31.4981, 94.3954)
Luminance0.3150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E87FA #E3FA87
analogous
#87A9FA #9E87FA #D787FA
triadic
#9E87FA #FA9E87 #87FA9E
tetradic
#9E87FA #FA87A9 #E3FA87 #87FAD7
square
#9E87FA #FA87A9 #E3FA87 #87FAD7
split-complementary
#9E87FA #FAD787 #A9FA87
monochromatic
#3F11F5 #6F4CF8 #9E87FA #CDC2FC #E7E2FE

Accessibility & contrast

On white

2.88
#9E87FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.30
#9E87FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9E87FA
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E87FA#FFFFFF#000000##000000
##9E87FA1.002.887.307.30
#FFFFFF2.881.0021.0021.00
#0000007.3021.001.001.00
##0000007.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E9AFE
Deuteranopia (green-blind)
#6096F7
Tritanopia (blue-blind)
#869EB5
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #9e87fa;
/* rgb */ color: rgb(158, 135, 250);
/* oklch */ color: oklch(69.4% 0.165 290.7);
Tailwind
colors: {
  custom: {
    50: '#beaafc',
    500: '#9e87fa',
    950: '#000000',
  },
}
SCSS
$custom: #9e87fa;
$custom-light: #beaafc;
$custom-dark: #000000;
JSON
{
  "hex": "#9e87fa",
  "rgb": {
    "r": 158,
    "g": 135,
    "b": 250
  },
  "hsl": {
    "h": 252,
    "s": 92,
    "l": 75.49
  },
  "oklch": {
    "l": 0.69427,
    "c": 0.16477,
    "h": 290.7
  },
  "luminance": 0.31499
}

Semantic roles & 50–950 ramp

primary
#9E87FA
secondary
#EFF6D5
accent
#E600B8
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#121017
muted
#817F85

Preview Lab

Preview with #9E87FA

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

Preview Lab → · Contrast checker → · Palette generator →

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