#9871CF#9871CF

#9871CF is a light, vivid violet. Relative luminance 0.230; OKLCH L 62.7% C 0.142 H 301.6°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#9871CF
RGBrgb(152, 113, 207)
HSLhsl(265, 49%, 63%)
HSVhsv(265, 45%, 81%)
CMYKcmyk(26.6%, 45.4%, 0%, 18.8%)
CIE-LABlab(55.06, 34.56, -43.13)
CIE-LCHlch(55.06, 55.27, 308.70°)
OKLaboklab(62.67% 0.0743 -0.1208)
OKLCHoklch(62.67% 0.142 301.6)
XYZxyz(30.1140, 22.9906, 61.8705)
Luminance0.2299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9871CF #A8CF71
analogous
#7179CF #9871CF #C771CF
triadic
#9871CF #CF9871 #71CF98
tetradic
#9871CF #CF7179 #A8CF71 #71CFC7
square
#9871CF #CF7179 #A8CF71 #71CFC7
split-complementary
#9871CF #CFC771 #79CF71
monochromatic
#5A3294 #7743C0 #9871CF #B99FDE #DACCEE

Accessibility & contrast

On white

3.75
#9871CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#9871CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9871CF
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9871CF#FFFFFF#000000##000000
##9871CF1.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5683D2
Deuteranopia (green-blind)
#5F83CD
Tritanopia (blue-blind)
#8E8196
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #9871cf;
/* rgb */ color: rgb(152, 113, 207);
/* oklch */ color: oklch(62.7% 0.142 301.6);
Tailwind
colors: {
  custom: {
    50: '#b89ade',
    500: '#9871cf',
    950: '#000000',
  },
}
SCSS
$custom: #9871cf;
$custom-light: #b89ade;
$custom-dark: #000000;
JSON
{
  "hex": "#9871cf",
  "rgb": {
    "r": 152,
    "g": 113,
    "b": 207
  },
  "hsl": {
    "h": 264.894,
    "s": 49.474,
    "l": 62.745
  },
  "oklch": {
    "l": 0.62667,
    "c": 0.1418,
    "h": 301.6
  },
  "luminance": 0.22991
}

Semantic roles & 50–950 ramp

primary
#9871CF
secondary
#D1DFBD
accent
#BD297F
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#120E15
muted
#817E83

Preview Lab

Preview with #9871CF

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

Preview Lab → · Contrast checker → · Palette generator →

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