#9C87DB#9C87DB

#9C87DB is a light, vivid violet. Relative luminance 0.295; OKLCH L 67.6% C 0.123 H 294.4°. Best body text is #000000 at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#9C87DB
RGBrgb(156, 135, 219)
HSLhsl(255, 54%, 69%)
HSVhsv(255, 38%, 86%)
CMYKcmyk(28.8%, 38.4%, 0%, 14.1%)
CIE-LABlab(61.23, 26.04, -40.15)
CIE-LCHlch(61.23, 47.86, 302.96°)
OKLaboklab(67.6% 0.0508 -0.1121)
OKLCHoklch(67.6% 0.123 294.4)
XYZxyz(35.1573, 29.5098, 70.8478)
Luminance0.2951 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C87DB #C6DB87
analogous
#879CDB #9C87DB #C687DB
triadic
#9C87DB #DB9C87 #87DB9C
tetradic
#9C87DB #DB879C #C6DB87 #87DBC6
square
#9C87DB #DB879C #C6DB87 #87DBC6
split-complementary
#9C87DB #DBC687 #9CDB87
monochromatic
#5535B2 #7558CD #9C87DB #C3B6E9 #EAE5F7

Accessibility & contrast

On white

3.04
#9C87DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.90
#9C87DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C87DB
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C87DB#FFFFFF#000000##000000
##9C87DB1.003.046.906.90
#FFFFFF3.041.0021.0021.00
#0000006.9021.001.001.00
##0000006.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7095DE
Deuteranopia (green-blind)
#7293D9
Tritanopia (blue-blind)
#8E96A7
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #9c87db;
/* rgb */ color: rgb(156, 135, 219);
/* oklch */ color: oklch(67.6% 0.123 294.4);
Tailwind
colors: {
  custom: {
    50: '#bbaae6',
    500: '#9c87db',
    950: '#000000',
  },
}
SCSS
$custom: #9c87db;
$custom-light: #bbaae6;
$custom-dark: #000000;
JSON
{
  "hex": "#9c87db",
  "rgb": {
    "r": 156,
    "g": 135,
    "b": 219
  },
  "hsl": {
    "h": 255,
    "s": 53.846,
    "l": 69.412
  },
  "oklch": {
    "l": 0.67604,
    "c": 0.12305,
    "h": 294.4
  },
  "luminance": 0.2951
}

Semantic roles & 50–950 ramp

primary
#9C87DB
secondary
#E5EBD3
accent
#C1249A
background
#FBFAFE
surface
#F6F4FC
border
#D0CED5
text
#121016
muted
#817F84

Preview Lab

Preview with #9C87DB

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

Preview Lab → · Contrast checker → · Palette generator →

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