#9D87EA#9D87EA

#9D87EA is a light, vivid violet. Relative luminance 0.304; OKLCH L 68.5% C 0.143 H 292.4°. Best body text is #000000 at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#9D87EA
RGBrgb(157, 135, 234)
HSLhsl(253, 70%, 72%)
HSVhsv(253, 42%, 92%)
CMYKcmyk(32.9%, 42.3%, 0%, 8.2%)
CIE-LABlab(62.03, 30.12, -47.23)
CIE-LCHlch(62.03, 56.02, 302.52°)
OKLaboklab(68.47% 0.0547 -0.1326)
OKLCHoklch(68.47% 0.143 292.4)
XYZxyz(37.4161, 30.4358, 81.7293)
Luminance0.3044 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D87EA #D4EA87
analogous
#87A3EA #9D87EA #CE87EA
triadic
#9D87EA #EA9D87 #87EA9D
tetradic
#9D87EA #EA87A3 #D4EA87 #87EACE
square
#9D87EA #EA87A3 #D4EA87 #87EACE
split-complementary
#9D87EA #EACE87 #A3EA87
monochromatic
#4B25D2 #7253E1 #9D87EA #C8BBF3 #EAE5FA

Accessibility & contrast

On white

2.96
#9D87EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.09
#9D87EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9D87EA
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D87EA#FFFFFF#000000##000000
##9D87EA1.002.967.097.09
#FFFFFF2.961.0021.0021.00
#0000007.0921.001.001.00
##0000007.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6897EE
Deuteranopia (green-blind)
#6A94E8
Tritanopia (blue-blind)
#8B99AD
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #9d87ea;
/* rgb */ color: rgb(157, 135, 234);
/* oklch */ color: oklch(68.5% 0.143 292.4);
Tailwind
colors: {
  custom: {
    50: '#bcaaf1',
    500: '#9d87ea',
    950: '#000000',
  },
}
SCSS
$custom: #9d87ea;
$custom-light: #bcaaf1;
$custom-dark: #000000;
JSON
{
  "hex": "#9d87ea",
  "rgb": {
    "r": 157,
    "g": 135,
    "b": 234
  },
  "hsl": {
    "h": 253.333,
    "s": 70.213,
    "l": 72.353
  },
  "oklch": {
    "l": 0.68465,
    "c": 0.14345,
    "h": 292.4
  },
  "luminance": 0.30437
}

Semantic roles & 50–950 ramp

primary
#9D87EA
secondary
#ECF2D9
accent
#D213A8
background
#FBFAFE
surface
#F7F4FD
border
#D0CED5
text
#121017
muted
#817F85

Preview Lab

Preview with #9D87EA

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

Preview Lab → · Contrast checker → · Palette generator →

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