#9E87F2#9E87F2

#9E87F2 is a light, vivid violet. Relative luminance 0.310; OKLCH L 69.0% C 0.154 H 291.7°. Best body text is #000000 at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#9E87F2
RGBrgb(158, 135, 242)
HSLhsl(253, 80%, 74%)
HSVhsv(253, 44%, 95%)
CMYKcmyk(34.7%, 44.2%, 0%, 5.1%)
CIE-LABlab(62.51, 32.45, -50.88)
CIE-LCHlch(62.51, 60.34, 302.53°)
OKLaboklab(68.98% 0.0571 -0.1432)
OKLCHoklch(68.98% 0.154 291.7)
XYZxyz(38.7873, 31.0070, 87.9285)
Luminance0.3101 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E87F2 #DBF287
analogous
#87A6F2 #9E87F2 #D487F2
triadic
#9E87F2 #F29E87 #87F29E
tetradic
#9E87F2 #F287A6 #DBF287 #87F2D4
square
#9E87F2 #F287A6 #DBF287 #87F2D4
split-complementary
#9E87F2 #F2D487 #A6F287
monochromatic
#4519E6 #7150EC #9E87F2 #CBBEF8 #E9E3FC

Accessibility & contrast

On white

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

On black

7.20
#9E87F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9E87F2
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E87F2#FFFFFF#000000##000000
##9E87F21.002.927.207.20
#FFFFFF2.921.0021.0021.00
#0000007.2021.001.001.00
##0000007.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6399F6
Deuteranopia (green-blind)
#6695EF
Tritanopia (blue-blind)
#899BB1
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #9e87f2;
/* rgb */ color: rgb(158, 135, 242);
/* oklch */ color: oklch(69.0% 0.154 291.7);
Tailwind
colors: {
  custom: {
    50: '#beaaf7',
    500: '#9e87f2',
    950: '#000000',
  },
}
SCSS
$custom: #9e87f2;
$custom-light: #beaaf7;
$custom-dark: #000000;
JSON
{
  "hex": "#9e87f2",
  "rgb": {
    "r": 158,
    "g": 135,
    "b": 242
  },
  "hsl": {
    "h": 252.897,
    "s": 80.451,
    "l": 73.922
  },
  "oklch": {
    "l": 0.68982,
    "c": 0.15418,
    "h": 291.7
  },
  "luminance": 0.31008
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9E87F2

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

Preview Lab → · Contrast checker → · Palette generator →

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