#9E87CD#9E87CD

#9E87CD is a light, moderate violet. Relative luminance 0.290; OKLCH L 67.1% C 0.104 H 298.7°. Best body text is #000000 at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#9E87CD
RGBrgb(158, 135, 205)
HSLhsl(260, 41%, 67%)
HSVhsv(260, 34%, 80%)
CMYKcmyk(22.9%, 34.1%, 0%, 19.6%)
CIE-LABlab(60.79, 23.20, -32.99)
CIE-LCHlch(60.79, 40.33, 305.12°)
OKLaboklab(67.11% 0.05 -0.0914)
OKLCHoklch(67.11% 0.104 298.7)
XYZxyz(33.7815, 29.0046, 61.5645)
Luminance0.2900 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E87CD #B6CD87
analogous
#8793CD #9E87CD #C187CD
triadic
#9E87CD #CD9E87 #87CD9E
tetradic
#9E87CD #CD8793 #B6CD87 #87CDC1
square
#9E87CD #CD8793 #B6CD87 #87CDC1
split-complementary
#9E87CD #CDC187 #93CD87
monochromatic
#5D409A #7B5CBB #9E87CD #C1B2DF #E4DDF1

Accessibility & contrast

On white

3.09
#9E87CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.80
#9E87CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E87CD
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E87CD#FFFFFF#000000##000000
##9E87CD1.003.096.806.80
#FFFFFF3.091.0021.0021.00
#0000006.8021.001.001.00
##0000006.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7693D0
Deuteranopia (green-blind)
#7A92CB
Tritanopia (blue-blind)
#9592A1
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #9e87cd;
/* rgb */ color: rgb(158, 135, 205);
/* oklch */ color: oklch(67.1% 0.104 298.7);
Tailwind
colors: {
  custom: {
    50: '#bcaadc',
    500: '#9e87cd',
    950: '#000000',
  },
}
SCSS
$custom: #9e87cd;
$custom-light: #bcaadc;
$custom-dark: #000000;
JSON
{
  "hex": "#9e87cd",
  "rgb": {
    "r": 158,
    "g": 135,
    "b": 205
  },
  "hsl": {
    "h": 259.714,
    "s": 41.176,
    "l": 66.667
  },
  "oklch": {
    "l": 0.67105,
    "c": 0.10417,
    "h": 298.7
  },
  "luminance": 0.29005
}

Semantic roles & 50–950 ramp

primary
#9E87CD
secondary
#DCE3CD
accent
#B43189
background
#FBFAFD
surface
#F6F4FB
border
#D0CED4
text
#121015
muted
#817F83

Preview Lab

Preview with #9E87CD

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

Preview Lab → · Contrast checker → · Palette generator →

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