#9E87F3#9E87F3

#9E87F3 is a light, vivid violet. Relative luminance 0.311; OKLCH L 69.0% C 0.156 H 291.6°. Best body text is #000000 at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#9E87F3
RGBrgb(158, 135, 243)
HSLhsl(253, 82%, 74%)
HSVhsv(253, 44%, 95%)
CMYKcmyk(35%, 44.4%, 0%, 4.7%)
CIE-LABlab(62.56, 32.71, -51.35)
CIE-LCHlch(62.56, 60.88, 302.50°)
OKLaboklab(69.04% 0.0572 -0.1446)
OKLCHoklch(69.04% 0.156 291.6)
XYZxyz(38.9379, 31.0672, 88.7217)
Luminance0.3107 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E87F3 #DCF387
analogous
#87A6F3 #9E87F3 #D487F3
triadic
#9E87F3 #F39E87 #87F39E
tetradic
#9E87F3 #F387A6 #DCF387 #87F3D4
square
#9E87F3 #F387A6 #DCF387 #87F3D4
split-complementary
#9E87F3 #F3D487 #A6F387
monochromatic
#4418E8 #714FED #9E87F3 #CBBFF9 #E9E3FC

Accessibility & contrast

On white

2.91
#9E87F3 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.21
#9E87F3 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9E87F3
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E87F3#FFFFFF#000000##000000
##9E87F31.002.917.217.21
#FFFFFF2.911.0021.0021.00
#0000007.2121.001.001.00
##0000007.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6399F7
Deuteranopia (green-blind)
#6595F0
Tritanopia (blue-blind)
#899CB1
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #9e87f3;
/* rgb */ color: rgb(158, 135, 243);
/* oklch */ color: oklch(69.0% 0.156 291.6);
Tailwind
colors: {
  custom: {
    50: '#beaaf7',
    500: '#9e87f3',
    950: '#000000',
  },
}
SCSS
$custom: #9e87f3;
$custom-light: #beaaf7;
$custom-dark: #000000;
JSON
{
  "hex": "#9e87f3",
  "rgb": {
    "r": 158,
    "g": 135,
    "b": 243
  },
  "hsl": {
    "h": 252.778,
    "s": 81.818,
    "l": 74.118
  },
  "oklch": {
    "l": 0.69037,
    "c": 0.15552,
    "h": 291.6
  },
  "luminance": 0.31068
}

Semantic roles & 50–950 ramp

primary
#9E87F3
secondary
#EEF4D7
accent
#DE07B0
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#121017
muted
#817F85

Preview Lab

Preview with #9E87F3

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

Preview Lab → · Contrast checker → · Palette generator →

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