#9871BC#9871BC

#9871BC is a mid, moderate violet. Relative luminance 0.221; OKLCH L 61.7% C 0.117 H 307.2°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#9871BC
RGBrgb(152, 113, 188)
HSLhsl(271, 36%, 59%)
HSVhsv(271, 40%, 74%)
CMYKcmyk(19.1%, 39.9%, 0%, 26.3%)
CIE-LABlab(54.15, 30.04, -33.73)
CIE-LCHlch(54.15, 45.16, 311.69°)
OKLaboklab(61.68% 0.071 -0.0935)
OKLCHoklch(61.68% 0.117 307.2)
XYZxyz(27.9294, 22.1167, 50.3648)
Luminance0.2212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9871BC #95BC71
analogous
#7371BC #9871BC #BC71BB
triadic
#9871BC #BC9871 #71BC98
tetradic
#9871BC #BC7371 #95BC71 #71BBBC
square
#9871BC #BC7371 #95BC71 #71BBBC
split-complementary
#9871BC #BBBC71 #71BC73
monochromatic
#5B3979 #7A4DA3 #9871BC #B69BD0 #D4C4E3

Accessibility & contrast

On white

3.87
#9871BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#9871BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9871BC
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9871BC#FFFFFF#000000##000000
##9871BC1.003.875.425.42
#FFFFFF3.871.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6180BF
Deuteranopia (green-blind)
#6A82BA
Tritanopia (blue-blind)
#937D8E
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #9871bc;
/* rgb */ color: rgb(152, 113, 188);
/* oklch */ color: oklch(61.7% 0.117 307.2);
Tailwind
colors: {
  custom: {
    50: '#b79ad0',
    500: '#9871bc',
    950: '#000000',
  },
}
SCSS
$custom: #9871bc;
$custom-light: #b79ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#9871bc",
  "rgb": {
    "r": 152,
    "g": 113,
    "b": 188
  },
  "hsl": {
    "h": 271.2,
    "s": 35.885,
    "l": 59.02
  },
  "oklch": {
    "l": 0.61682,
    "c": 0.11743,
    "h": 307.2
  },
  "luminance": 0.22116
}

Semantic roles & 50–950 ramp

primary
#9871BC
secondary
#C4D3B6
accent
#CC5C92
background
#FBF9FC
surface
#F6F2F9
border
#D0CCD2
text
#110E14
muted
#807E82

Preview Lab

Preview with #9871BC

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

Preview Lab → · Contrast checker → · Palette generator →

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