#9E87F1#9E87F1

#9E87F1 is a light, vivid violet. Relative luminance 0.309; OKLCH L 68.9% C 0.153 H 291.9°. Best body text is #000000 at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#9E87F1
RGBrgb(158, 135, 241)
HSLhsl(253, 79%, 74%)
HSVhsv(253, 44%, 95%)
CMYKcmyk(34.4%, 44%, 0%, 5.5%)
CIE-LABlab(62.46, 32.19, -50.41)
CIE-LCHlch(62.46, 59.81, 302.56°)
OKLaboklab(68.93% 0.0569 -0.1419)
OKLCHoklch(68.93% 0.153 291.9)
XYZxyz(38.6376, 30.9471, 87.1397)
Luminance0.3095 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E87F1 #DAF187
analogous
#87A5F1 #9E87F1 #D387F1
triadic
#9E87F1 #F19E87 #87F19E
tetradic
#9E87F1 #F187A5 #DAF187 #87F1D3
square
#9E87F1 #F187A5 #DAF187 #87F1D3
split-complementary
#9E87F1 #F1D387 #A5F187
monochromatic
#461AE3 #7250EB #9E87F1 #CABEF7 #E9E4FC

Accessibility & contrast

On white

2.92
#9E87F1 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.19
#9E87F1 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9E87F1
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E87F1#FFFFFF#000000##000000
##9E87F11.002.927.197.19
#FFFFFF2.921.0021.0021.00
#0000007.1921.001.001.00
##0000007.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6499F5
Deuteranopia (green-blind)
#6695EE
Tritanopia (blue-blind)
#8A9BB0
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #9e87f1;
/* rgb */ color: rgb(158, 135, 241);
/* oklch */ color: oklch(68.9% 0.153 291.9);
Tailwind
colors: {
  custom: {
    50: '#beaaf6',
    500: '#9e87f1',
    950: '#000000',
  },
}
SCSS
$custom: #9e87f1;
$custom-light: #beaaf6;
$custom-dark: #000000;
JSON
{
  "hex": "#9e87f1",
  "rgb": {
    "r": 158,
    "g": 135,
    "b": 241
  },
  "hsl": {
    "h": 253.019,
    "s": 79.104,
    "l": 73.725
  },
  "oklch": {
    "l": 0.68928,
    "c": 0.15286,
    "h": 291.9
  },
  "luminance": 0.30948
}

Semantic roles & 50–950 ramp

primary
#9E87F1
secondary
#EDF4D7
accent
#DB0AAE
background
#FBFAFF
surface
#F7F4FE
border
#D0CED6
text
#121017
muted
#817F85

Preview Lab

Preview with #9E87F1

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

Preview Lab → · Contrast checker → · Palette generator →

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