#9871DC#9871DC

#9871DC is a light, vivid violet. Relative luminance 0.237; OKLCH L 63.4% C 0.158 H 298.6°. Best body text is #000000 at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#9871DC
RGBrgb(152, 113, 220)
HSLhsl(262, 60%, 65%)
HSVhsv(262, 49%, 86%)
CMYKcmyk(30.9%, 48.6%, 0%, 13.7%)
CIE-LABlab(55.74, 37.78, -49.41)
CIE-LCHlch(55.74, 62.20, 307.40°)
OKLaboklab(63.39% 0.0759 -0.1391)
OKLCHoklch(63.39% 0.158 298.6)
XYZxyz(31.7692, 23.6527, 70.5880)
Luminance0.2365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9871DC #B5DC71
analogous
#717FDC #9871DC #CD71DC
triadic
#9871DC #DC9871 #71DC98
tetradic
#9871DC #DC717F #B5DC71 #71DCCD
square
#9871DC #DC717F #B5DC71 #71DCCD
split-complementary
#9871DC #DCCD71 #7FDC71
monochromatic
#582AA9 #7440D0 #9871DC #BCA2E8 #DFD3F4

Accessibility & contrast

On white

3.66
#9871DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.73
#9871DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9871DC
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9871DC#FFFFFF#000000##000000
##9871DC1.003.665.735.73
#FFFFFF3.661.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D86E0
Deuteranopia (green-blind)
#5785D9
Tritanopia (blue-blind)
#8A859C
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #9871dc;
/* rgb */ color: rgb(152, 113, 220);
/* oklch */ color: oklch(63.4% 0.158 298.6);
Tailwind
colors: {
  custom: {
    50: '#b99ae7',
    500: '#9871dc',
    950: '#000000',
  },
}
SCSS
$custom: #9871dc;
$custom-light: #b99ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#9871dc",
  "rgb": {
    "r": 152,
    "g": 113,
    "b": 220
  },
  "hsl": {
    "h": 261.869,
    "s": 60.452,
    "l": 65.294
  },
  "oklch": {
    "l": 0.63393,
    "c": 0.15844,
    "h": 298.6
  },
  "luminance": 0.23653
}

Semantic roles & 50–950 ramp

primary
#9871DC
secondary
#D9E6C2
accent
#C81D8A
background
#FBF9FE
surface
#F6F2FC
border
#D0CCD5
text
#120E16
muted
#817E84

Preview Lab

Preview with #9871DC

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

Preview Lab → · Contrast checker → · Palette generator →

#9871DC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva