#9E87ED#9E87ED

#9E87ED is a light, vivid violet. Relative luminance 0.307; OKLCH L 68.7% C 0.148 H 292.4°. Best body text is #000000 at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#9E87ED
RGBrgb(158, 135, 237)
HSLhsl(254, 74%, 73%)
HSVhsv(254, 43%, 93%)
CMYKcmyk(33.3%, 43%, 0%, 7.1%)
CIE-LABlab(62.26, 31.15, -48.51)
CIE-LCHlch(62.26, 57.66, 302.71°)
OKLaboklab(68.71% 0.0563 -0.1363)
OKLCHoklch(68.71% 0.148 292.4)
XYZxyz(38.0466, 30.7107, 84.0276)
Luminance0.3071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E87ED #D6ED87
analogous
#87A3ED #9E87ED #D187ED
triadic
#9E87ED #ED9E87 #87ED9E
tetradic
#9E87ED #ED87A3 #D6ED87 #87EDD1
square
#9E87ED #ED87A3 #D6ED87 #87EDD1
split-complementary
#9E87ED #EDD187 #A3ED87
monochromatic
#4A21D9 #7352E5 #9E87ED #C9BCF5 #E9E4FB

Accessibility & contrast

On white

2.94
#9E87ED on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.14
#9E87ED on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9E87ED
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E87ED#FFFFFF#000000##000000
##9E87ED1.002.947.147.14
#FFFFFF2.941.0021.0021.00
#0000007.1421.001.001.00
##0000007.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6698F1
Deuteranopia (green-blind)
#6995EB
Tritanopia (blue-blind)
#8B9AAF
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #9e87ed;
/* rgb */ color: rgb(158, 135, 237);
/* oklch */ color: oklch(68.7% 0.148 292.4);
Tailwind
colors: {
  custom: {
    50: '#bdaaf3',
    500: '#9e87ed',
    950: '#000000',
  },
}
SCSS
$custom: #9e87ed;
$custom-light: #bdaaf3;
$custom-dark: #000000;
JSON
{
  "hex": "#9e87ed",
  "rgb": {
    "r": 158,
    "g": 135,
    "b": 237
  },
  "hsl": {
    "h": 253.529,
    "s": 73.913,
    "l": 72.941
  },
  "oklch": {
    "l": 0.68711,
    "c": 0.14752,
    "h": 292.4
  },
  "luminance": 0.30711
}

Semantic roles & 50–950 ramp

primary
#9E87ED
secondary
#EDF3D8
accent
#D60FA9
background
#FBFAFE
surface
#F7F4FD
border
#D0CED5
text
#121017
muted
#817F85

Preview Lab

Preview with #9E87ED

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

Preview Lab → · Contrast checker → · Palette generator →

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