#9871CB#9871CB

#9871CB is a light, vivid violet. Relative luminance 0.228; OKLCH L 62.5% C 0.137 H 302.6°. Best body text is #000000 at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#9871CB
RGBrgb(152, 113, 203)
HSLhsl(266, 46%, 62%)
HSVhsv(266, 44%, 80%)
CMYKcmyk(25.1%, 44.3%, 0%, 20.4%)
CIE-LABlab(54.86, 33.59, -41.18)
CIE-LCHlch(54.86, 53.14, 309.20°)
OKLaboklab(62.45% 0.0737 -0.1151)
OKLCHoklch(62.45% 0.137 302.6)
XYZxyz(29.6312, 22.7975, 59.3276)
Luminance0.2280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9871CB #A4CB71
analogous
#7177CB #9871CB #C571CB
triadic
#9871CB #CB9871 #71CB98
tetradic
#9871CB #CB7177 #A4CB71 #71CBC5
square
#9871CB #CB7177 #A4CB71 #71CBC5
split-complementary
#9871CB #CBC571 #77CB71
monochromatic
#5B348E #7844BB #9871CB #B89EDB #D9CBEC

Accessibility & contrast

On white

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

On black

5.56
#9871CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9871CB
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9871CB#FFFFFF#000000##000000
##9871CB1.003.785.565.56
#FFFFFF3.781.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9871cb;
/* rgb */ color: rgb(152, 113, 203);
/* oklch */ color: oklch(62.5% 0.137 302.6);
Tailwind
colors: {
  custom: {
    50: '#b89adb',
    500: '#9871cb',
    950: '#000000',
  },
}
SCSS
$custom: #9871cb;
$custom-light: #b89adb;
$custom-dark: #000000;
JSON
{
  "hex": "#9871cb",
  "rgb": {
    "r": 152,
    "g": 113,
    "b": 203
  },
  "hsl": {
    "h": 266,
    "s": 46.392,
    "l": 61.961
  },
  "oklch": {
    "l": 0.62452,
    "c": 0.13666,
    "h": 302.6
  },
  "luminance": 0.22797
}

Semantic roles & 50–950 ramp

primary
#9871CB
secondary
#CEDCBB
accent
#BA2C7C
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#120E15
muted
#817E83

Preview Lab

Preview with #9871CB

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

Preview Lab → · Contrast checker → · Palette generator →

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