#9D87DC#9D87DC

#9D87DC is a light, vivid violet. Relative luminance 0.297; OKLCH L 67.7% C 0.125 H 294.8°. Best body text is #000000 at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#9D87DC
RGBrgb(157, 135, 220)
HSLhsl(256, 55%, 70%)
HSVhsv(256, 39%, 86%)
CMYKcmyk(28.6%, 38.6%, 0%, 13.7%)
CIE-LABlab(61.36, 26.57, -40.50)
CIE-LCHlch(61.36, 48.43, 303.27°)
OKLaboklab(67.74% 0.0521 -0.1131)
OKLCHoklch(67.74% 0.125 294.8)
XYZxyz(35.4837, 29.6629, 71.5523)
Luminance0.2966 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D87DC #C6DC87
analogous
#879CDC #9D87DC #C787DC
triadic
#9D87DC #DC9D87 #87DC9D
tetradic
#9D87DC #DC879C #C6DC87 #87DCC7
square
#9D87DC #DC879C #C6DC87 #87DCC7
split-complementary
#9D87DC #DCC787 #9CDC87
monochromatic
#5635B4 #7658CE #9D87DC #C4B6EA #EAE6F8

Accessibility & contrast

On white

3.03
#9D87DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.93
#9D87DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D87DC
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D87DC#FFFFFF#000000##000000
##9D87DC1.003.036.936.93
#FFFFFF3.031.0021.0021.00
#0000006.9321.001.001.00
##0000006.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F95DF
Deuteranopia (green-blind)
#7293DA
Tritanopia (blue-blind)
#8F96A7
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #9d87dc;
/* rgb */ color: rgb(157, 135, 220);
/* oklch */ color: oklch(67.7% 0.125 294.8);
Tailwind
colors: {
  custom: {
    50: '#bcaae7',
    500: '#9d87dc',
    950: '#000000',
  },
}
SCSS
$custom: #9d87dc;
$custom-light: #bcaae7;
$custom-dark: #000000;
JSON
{
  "hex": "#9d87dc",
  "rgb": {
    "r": 157,
    "g": 135,
    "b": 220
  },
  "hsl": {
    "h": 255.529,
    "s": 54.839,
    "l": 69.608
  },
  "oklch": {
    "l": 0.67742,
    "c": 0.12451,
    "h": 294.8
  },
  "luminance": 0.29663
}

Semantic roles & 50–950 ramp

primary
#9D87DC
secondary
#E5ECD3
accent
#C22399
background
#FBFAFE
surface
#F6F4FC
border
#D0CED5
text
#121016
muted
#817F84

Preview Lab

Preview with #9D87DC

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

Preview Lab → · Contrast checker → · Palette generator →

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