#9E87F5#9E87F5

#9E87F5 is a light, vivid violet. Relative luminance 0.312; OKLCH L 69.1% C 0.158 H 291.3°. Best body text is #000000 at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#9E87F5
RGBrgb(158, 135, 245)
HSLhsl(253, 85%, 75%)
HSVhsv(253, 45%, 96%)
CMYKcmyk(35.5%, 44.9%, 0%, 3.9%)
CIE-LABlab(62.67, 33.23, -52.29)
CIE-LCHlch(62.67, 61.95, 302.44°)
OKLaboklab(69.15% 0.0575 -0.1473)
OKLCHoklch(69.15% 0.158 291.3)
XYZxyz(39.2416, 31.1887, 90.3210)
Luminance0.3119 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E87F5 #DEF587
analogous
#87A7F5 #9E87F5 #D587F5
triadic
#9E87F5 #F59E87 #87F59E
tetradic
#9E87F5 #F587A7 #DEF587 #87F5D5
square
#9E87F5 #F587A7 #DEF587 #87F5D5
split-complementary
#9E87F5 #F5D587 #A7F587
monochromatic
#4316EC #704FF0 #9E87F5 #CCBFFA #E8E3FD

Accessibility & contrast

On white

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

On black

7.24
#9E87F5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9E87F5
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E87F5#FFFFFF#000000##000000
##9E87F51.002.907.247.24
#FFFFFF2.901.0021.0021.00
#0000007.2421.001.001.00
##0000007.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6199F9
Deuteranopia (green-blind)
#6395F2
Tritanopia (blue-blind)
#889CB2
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #9e87f5;
/* rgb */ color: rgb(158, 135, 245);
/* oklch */ color: oklch(69.1% 0.158 291.3);
Tailwind
colors: {
  custom: {
    50: '#beaaf9',
    500: '#9e87f5',
    950: '#000000',
  },
}
SCSS
$custom: #9e87f5;
$custom-light: #beaaf9;
$custom-dark: #000000;
JSON
{
  "hex": "#9e87f5",
  "rgb": {
    "r": 158,
    "g": 135,
    "b": 245
  },
  "hsl": {
    "h": 252.545,
    "s": 84.615,
    "l": 74.51
  },
  "oklch": {
    "l": 0.69148,
    "c": 0.15817,
    "h": 291.3
  },
  "luminance": 0.3119
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9E87F5

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

Preview Lab → · Contrast checker → · Palette generator →

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