#9871DF#9871DF

#9871DF is a light, vivid violet. Relative luminance 0.238; OKLCH L 63.6% C 0.162 H 298.0°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#9871DF
RGBrgb(152, 113, 223)
HSLhsl(261, 63%, 66%)
HSVhsv(261, 49%, 87%)
CMYKcmyk(31.8%, 49.3%, 0%, 12.5%)
CIE-LABlab(55.90, 38.54, -50.84)
CIE-LCHlch(55.90, 63.79, 307.16°)
OKLaboklab(63.57% 0.0762 -0.1433)
OKLCHoklch(63.57% 0.162 298)
XYZxyz(32.1701, 23.8130, 72.6992)
Luminance0.2381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9871DF #B8DF71
analogous
#7181DF #9871DF #CF71DF
triadic
#9871DF #DF9871 #71DF98
tetradic
#9871DF #DF7181 #B8DF71 #71DFCF
square
#9871DF #DF7181 #B8DF71 #71DFCF
split-complementary
#9871DF #DFCF71 #81DF71
monochromatic
#5727AE #743FD4 #9871DF #BCA3EA #E0D5F6

Accessibility & contrast

On white

3.64
#9871DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.76
#9871DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9871DF
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9871DF#FFFFFF#000000##000000
##9871DF1.003.645.765.76
#FFFFFF3.641.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B86E3
Deuteranopia (green-blind)
#5485DC
Tritanopia (blue-blind)
#89869E
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #9871df;
/* rgb */ color: rgb(152, 113, 223);
/* oklch */ color: oklch(63.6% 0.162 298.0);
Tailwind
colors: {
  custom: {
    50: '#b99ae9',
    500: '#9871df',
    950: '#000000',
  },
}
SCSS
$custom: #9871df;
$custom-light: #b99ae9;
$custom-dark: #000000;
JSON
{
  "hex": "#9871df",
  "rgb": {
    "r": 152,
    "g": 113,
    "b": 223
  },
  "hsl": {
    "h": 261.273,
    "s": 63.218,
    "l": 65.882
  },
  "oklch": {
    "l": 0.63566,
    "c": 0.16227,
    "h": 298
  },
  "luminance": 0.23813
}

Semantic roles & 50–950 ramp

primary
#9871DF
secondary
#DBE8C4
accent
#CB1B8C
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#120E16
muted
#817E84

Preview Lab

Preview with #9871DF

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

Preview Lab → · Contrast checker → · Palette generator →

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