#9E87F6#9E87F6

#9E87F6 is a light, vivid violet. Relative luminance 0.313; OKLCH L 69.2% C 0.159 H 291.2°. Best body text is #000000 at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#9E87F6
RGBrgb(158, 135, 246)
HSLhsl(252, 86%, 75%)
HSVhsv(252, 45%, 96%)
CMYKcmyk(35.8%, 45.1%, 0%, 3.5%)
CIE-LABlab(62.72, 33.49, -52.76)
CIE-LCHlch(62.72, 62.49, 302.41°)
OKLaboklab(69.2% 0.0576 -0.1487)
OKLCHoklch(69.2% 0.159 291.2)
XYZxyz(39.3947, 31.2499, 91.1272)
Luminance0.3125 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E87F6 #DFF687
analogous
#87A8F6 #9E87F6 #D587F6
triadic
#9E87F6 #F69E87 #87F69E
tetradic
#9E87F6 #F687A8 #DFF687 #87F6D5
square
#9E87F6 #F687A8 #DFF687 #87F6D5
split-complementary
#9E87F6 #F6D587 #A8F687
monochromatic
#4215ED #704EF2 #9E87F6 #CCC0FA #E8E3FD

Accessibility & contrast

On white

2.90
#9E87F6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.25
#9E87F6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9E87F6
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E87F6#FFFFFF#000000##000000
##9E87F61.002.907.257.25
#FFFFFF2.901.0021.0021.00
#0000007.2521.001.001.00
##0000007.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#619AFA
Deuteranopia (green-blind)
#6395F3
Tritanopia (blue-blind)
#889CB3
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #9e87f6;
/* rgb */ color: rgb(158, 135, 246);
/* oklch */ color: oklch(69.2% 0.159 291.2);
Tailwind
colors: {
  custom: {
    50: '#beaafa',
    500: '#9e87f6',
    950: '#000000',
  },
}
SCSS
$custom: #9e87f6;
$custom-light: #beaafa;
$custom-dark: #000000;
JSON
{
  "hex": "#9e87f6",
  "rgb": {
    "r": 158,
    "g": 135,
    "b": 246
  },
  "hsl": {
    "h": 252.432,
    "s": 86.047,
    "l": 74.706
  },
  "oklch": {
    "l": 0.69203,
    "c": 0.15949,
    "h": 291.2
  },
  "luminance": 0.31251
}

Semantic roles & 50–950 ramp

primary
#9E87F6
secondary
#EEF5D6
accent
#E303B4
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#121017
muted
#817F85

Preview Lab

Preview with #9E87F6

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

Preview Lab → · Contrast checker → · Palette generator →

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