#9871DD#9871DD

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

Color values

HEX#9871DD
RGBrgb(152, 113, 221)
HSLhsl(262, 61%, 65%)
HSVhsv(262, 49%, 87%)
CMYKcmyk(31.2%, 48.9%, 0%, 13.3%)
CIE-LABlab(55.79, 38.03, -49.89)
CIE-LCHlch(55.79, 62.73, 307.32°)
OKLaboklab(63.45% 0.076 -0.1405)
OKLCHoklch(63.45% 0.16 298.4)
XYZxyz(31.9020, 23.7058, 71.2875)
Luminance0.2371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9871DD #B6DD71
analogous
#7180DD #9871DD #CE71DD
triadic
#9871DD #DD9871 #71DD98
tetradic
#9871DD #DD7180 #B6DD71 #71DDCE
square
#9871DD #DD7180 #B6DD71 #71DDCE
split-complementary
#9871DD #DDCE71 #80DD71
monochromatic
#5829AB #7440D1 #9871DD #BCA2E9 #E0D4F5

Accessibility & contrast

On white

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

On black

5.74
#9871DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9871DD
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9871DD#FFFFFF#000000##000000
##9871DD1.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D86E1
Deuteranopia (green-blind)
#5685DA
Tritanopia (blue-blind)
#8A859D
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #9871dd;
/* rgb */ color: rgb(152, 113, 221);
/* oklch */ color: oklch(63.4% 0.160 298.4);
Tailwind
colors: {
  custom: {
    50: '#b99ae8',
    500: '#9871dd',
    950: '#000000',
  },
}
SCSS
$custom: #9871dd;
$custom-light: #b99ae8;
$custom-dark: #000000;
JSON
{
  "hex": "#9871dd",
  "rgb": {
    "r": 152,
    "g": 113,
    "b": 221
  },
  "hsl": {
    "h": 261.667,
    "s": 61.364,
    "l": 65.49
  },
  "oklch": {
    "l": 0.6345,
    "c": 0.15972,
    "h": 298.4
  },
  "luminance": 0.23706
}

Semantic roles & 50–950 ramp

primary
#9871DD
secondary
#DAE7C3
accent
#C91C8B
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#120E16
muted
#817E84

Preview Lab

Preview with #9871DD

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

Preview Lab → · Contrast checker → · Palette generator →

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