#9E87FB#9E87FB

#9E87FB is a light, vivid violet. Relative luminance 0.316; OKLCH L 69.5% C 0.166 H 290.5°. Best body text is #000000 at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#9E87FB
RGBrgb(158, 135, 251)
HSLhsl(252, 94%, 76%)
HSVhsv(252, 46%, 98%)
CMYKcmyk(37.1%, 46.2%, 0%, 1.6%)
CIE-LABlab(62.98, 34.81, -55.09)
CIE-LCHlch(62.98, 65.17, 302.29°)
OKLaboklab(69.48% 0.0583 -0.1555)
OKLCHoklch(69.48% 0.166 290.5)
XYZxyz(40.1724, 31.5610, 95.2234)
Luminance0.3156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E87FB #E4FB87
analogous
#87AAFB #9E87FB #D887FB
triadic
#9E87FB #FB9E87 #87FB9E
tetradic
#9E87FB #FB87AA #E4FB87 #87FBD8
square
#9E87FB #FB87AA #E4FB87 #87FBD8
split-complementary
#9E87FB #FBD887 #AAFB87
monochromatic
#3E11F7 #6E4CF9 #9E87FB #CEC2FD #E7E1FE

Accessibility & contrast

On white

2.87
#9E87FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.31
#9E87FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9E87FB
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E87FB#FFFFFF#000000##000000
##9E87FB1.002.877.317.31
#FFFFFF2.871.0021.0021.00
#0000007.3121.001.001.00
##0000007.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D9AFF
Deuteranopia (green-blind)
#5F96F8
Tritanopia (blue-blind)
#869EB5
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #9e87fb;
/* rgb */ color: rgb(158, 135, 251);
/* oklch */ color: oklch(69.5% 0.166 290.5);
Tailwind
colors: {
  custom: {
    50: '#beaafd',
    500: '#9e87fb',
    950: '#000000',
  },
}
SCSS
$custom: #9e87fb;
$custom-light: #beaafd;
$custom-dark: #000000;
JSON
{
  "hex": "#9e87fb",
  "rgb": {
    "r": 158,
    "g": 135,
    "b": 251
  },
  "hsl": {
    "h": 251.897,
    "s": 93.548,
    "l": 75.686
  },
  "oklch": {
    "l": 0.69484,
    "c": 0.16609,
    "h": 290.5
  },
  "luminance": 0.31562
}

Semantic roles & 50–950 ramp

primary
#9E87FB
secondary
#F0F6D5
accent
#E600B8
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#121018
muted
#817F86

Preview Lab

Preview with #9E87FB

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

Preview Lab → · Contrast checker → · Palette generator →

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