#9871CE#9871CE

#9871CE is a light, vivid violet. Relative luminance 0.229; OKLCH L 62.6% C 0.141 H 301.8°. Best body text is #000000 at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#9871CE
RGBrgb(152, 113, 206)
HSLhsl(265, 49%, 63%)
HSVhsv(265, 45%, 81%)
CMYKcmyk(26.2%, 45.1%, 0%, 19.2%)
CIE-LABlab(55.01, 34.31, -42.65)
CIE-LCHlch(55.01, 54.74, 308.82°)
OKLaboklab(62.61% 0.0741 -0.1194)
OKLCHoklch(62.61% 0.141 301.8)
XYZxyz(29.9921, 22.9418, 61.2287)
Luminance0.2294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9871CE #A7CE71
analogous
#7179CE #9871CE #C671CE
triadic
#9871CE #CE9871 #71CE98
tetradic
#9871CE #CE7179 #A7CE71 #71CEC6
square
#9871CE #CE7179 #A7CE71 #71CEC6
split-complementary
#9871CE #CEC671 #79CE71
monochromatic
#5B3292 #7744BE #9871CE #B99EDE #DACCED

Accessibility & contrast

On white

3.76
#9871CE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.59
#9871CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9871CE
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9871CE#FFFFFF#000000##000000
##9871CE1.003.765.595.59
#FFFFFF3.761.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5783D1
Deuteranopia (green-blind)
#6083CC
Tritanopia (blue-blind)
#8E8196
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #9871ce;
/* rgb */ color: rgb(152, 113, 206);
/* oklch */ color: oklch(62.6% 0.141 301.8);
Tailwind
colors: {
  custom: {
    50: '#b89add',
    500: '#9871ce',
    950: '#000000',
  },
}
SCSS
$custom: #9871ce;
$custom-light: #b89add;
$custom-dark: #000000;
JSON
{
  "hex": "#9871ce",
  "rgb": {
    "r": 152,
    "g": 113,
    "b": 206
  },
  "hsl": {
    "h": 265.161,
    "s": 48.691,
    "l": 62.549
  },
  "oklch": {
    "l": 0.62613,
    "c": 0.14052,
    "h": 301.8
  },
  "luminance": 0.22942
}

Semantic roles & 50–950 ramp

primary
#9871CE
secondary
#D0DEBC
accent
#BC2A7F
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#120E15
muted
#817E83

Preview Lab

Preview with #9871CE

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

Preview Lab → · Contrast checker → · Palette generator →

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