#9871CA#9871CA

#9871CA is a light, vivid violet. Relative luminance 0.228; OKLCH L 62.4% C 0.135 H 302.9°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#9871CA
RGBrgb(152, 113, 202)
HSLhsl(266, 46%, 62%)
HSVhsv(266, 44%, 79%)
CMYKcmyk(24.8%, 44.1%, 0%, 20.8%)
CIE-LABlab(54.81, 33.35, -40.68)
CIE-LCHlch(54.81, 52.60, 309.34°)
OKLaboklab(62.4% 0.0735 -0.1137)
OKLCHoklch(62.4% 0.135 302.9)
XYZxyz(29.5124, 22.7499, 58.7021)
Luminance0.2275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9871CA #A3CA71
analogous
#7177CA #9871CA #C571CA
triadic
#9871CA #CA9871 #71CA98
tetradic
#9871CA #CA7177 #A3CA71 #71CAC5
square
#9871CA #CA7177 #A3CA71 #71CAC5
split-complementary
#9871CA #CAC571 #77CA71
monochromatic
#5B348C #7845B9 #9871CA #B89EDB #D9CAEB

Accessibility & contrast

On white

3.78
#9871CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#9871CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9871CA
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9871CA#FFFFFF#000000##000000
##9871CA1.003.785.555.55
#FFFFFF3.781.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5982CD
Deuteranopia (green-blind)
#6283C8
Tritanopia (blue-blind)
#8F8094
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #9871ca;
/* rgb */ color: rgb(152, 113, 202);
/* oklch */ color: oklch(62.4% 0.135 302.9);
Tailwind
colors: {
  custom: {
    50: '#b89ada',
    500: '#9871ca',
    950: '#000000',
  },
}
SCSS
$custom: #9871ca;
$custom-light: #b89ada;
$custom-dark: #000000;
JSON
{
  "hex": "#9871ca",
  "rgb": {
    "r": 152,
    "g": 113,
    "b": 202
  },
  "hsl": {
    "h": 266.292,
    "s": 45.641,
    "l": 61.765
  },
  "oklch": {
    "l": 0.62399,
    "c": 0.13538,
    "h": 302.9
  },
  "luminance": 0.2275
}

Semantic roles & 50–950 ramp

primary
#9871CA
secondary
#CDDCBB
accent
#B92D7B
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#120E15
muted
#817E83

Preview Lab

Preview with #9871CA

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

Preview Lab → · Contrast checker → · Palette generator →

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