#9871CD#9871CD

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

Color values

HEX#9871CD
RGBrgb(152, 113, 205)
HSLhsl(265, 48%, 62%)
HSVhsv(265, 45%, 80%)
CMYKcmyk(25.9%, 44.9%, 0%, 19.6%)
CIE-LABlab(54.96, 34.07, -42.16)
CIE-LCHlch(54.96, 54.20, 308.95°)
OKLaboklab(62.56% 0.074 -0.1179)
OKLCHoklch(62.56% 0.139 302.1)
XYZxyz(29.8710, 22.8934, 60.5910)
Luminance0.2289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9871CD #A6CD71
analogous
#7178CD #9871CD #C671CD
triadic
#9871CD #CD9871 #71CD98
tetradic
#9871CD #CD7178 #A6CD71 #71CDC6
square
#9871CD #CD7178 #A6CD71 #71CDC6
split-complementary
#9871CD #CDC671 #78CD71
monochromatic
#5B3391 #7744BD #9871CD #B99EDD #DACCED

Accessibility & contrast

On white

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

On black

5.58
#9871CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9871CD
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9871CD#FFFFFF#000000##000000
##9871CD1.003.765.585.58
#FFFFFF3.761.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5883D0
Deuteranopia (green-blind)
#6183CB
Tritanopia (blue-blind)
#8E8195
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #9871cd;
/* rgb */ color: rgb(152, 113, 205);
/* oklch */ color: oklch(62.6% 0.139 302.1);
Tailwind
colors: {
  custom: {
    50: '#b89adc',
    500: '#9871cd',
    950: '#000000',
  },
}
SCSS
$custom: #9871cd;
$custom-light: #b89adc;
$custom-dark: #000000;
JSON
{
  "hex": "#9871cd",
  "rgb": {
    "r": 152,
    "g": 113,
    "b": 205
  },
  "hsl": {
    "h": 265.435,
    "s": 47.917,
    "l": 62.353
  },
  "oklch": {
    "l": 0.62559,
    "c": 0.13924,
    "h": 302.1
  },
  "luminance": 0.22893
}

Semantic roles & 50–950 ramp

primary
#9871CD
secondary
#CFDEBC
accent
#BB2A7E
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#120E15
muted
#817E83

Preview Lab

Preview with #9871CD

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

Preview Lab → · Contrast checker → · Palette generator →

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