#9E87F4#9E87F4

#9E87F4 is a light, vivid violet. Relative luminance 0.311; OKLCH L 69.1% C 0.157 H 291.5°. Best body text is #000000 at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#9E87F4
RGBrgb(158, 135, 244)
HSLhsl(253, 83%, 74%)
HSVhsv(253, 45%, 96%)
CMYKcmyk(35.2%, 44.7%, 0%, 4.3%)
CIE-LABlab(62.62, 32.97, -51.82)
CIE-LCHlch(62.62, 61.42, 302.47°)
OKLaboklab(69.09% 0.0574 -0.146)
OKLCHoklch(69.09% 0.157 291.5)
XYZxyz(39.0894, 31.1278, 89.5192)
Luminance0.3113 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E87F4 #DDF487
analogous
#87A7F4 #9E87F4 #D587F4
triadic
#9E87F4 #F49E87 #87F49E
tetradic
#9E87F4 #F487A7 #DDF487 #87F4D5
square
#9E87F4 #F487A7 #DDF487 #87F4D5
split-complementary
#9E87F4 #F4D587 #A7F487
monochromatic
#4317EA #714FEF #9E87F4 #CBBFF9 #E8E3FC

Accessibility & contrast

On white

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

On black

7.23
#9E87F4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9E87F4
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E87F4#FFFFFF#000000##000000
##9E87F41.002.917.237.23
#FFFFFF2.911.0021.0021.00
#0000007.2321.001.001.00
##0000007.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6299F8
Deuteranopia (green-blind)
#6495F1
Tritanopia (blue-blind)
#899CB2
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #9e87f4;
/* rgb */ color: rgb(158, 135, 244);
/* oklch */ color: oklch(69.1% 0.157 291.5);
Tailwind
colors: {
  custom: {
    50: '#beaaf8',
    500: '#9e87f4',
    950: '#000000',
  },
}
SCSS
$custom: #9e87f4;
$custom-light: #beaaf8;
$custom-dark: #000000;
JSON
{
  "hex": "#9e87f4",
  "rgb": {
    "r": 158,
    "g": 135,
    "b": 244
  },
  "hsl": {
    "h": 252.661,
    "s": 83.206,
    "l": 74.314
  },
  "oklch": {
    "l": 0.69092,
    "c": 0.15684,
    "h": 291.5
  },
  "luminance": 0.31129
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9E87F4

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

Preview Lab → · Contrast checker → · Palette generator →

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