#871C96#871C96

#871C96 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 46.0% C 0.196 H 322.3°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#871C96
RGBrgb(135, 28, 150)
HSLhsl(293, 69%, 35%)
HSVhsv(293, 81%, 59%)
CMYKcmyk(10%, 81.3%, 0%, 41.2%)
CIE-LABlab(34.36, 58.48, -42.71)
CIE-LCHlch(34.36, 72.42, 323.86°)
OKLaboklab(46.01% 0.1548 -0.1196)
OKLCHoklch(46.01% 0.196 322.3)
XYZxyz(15.9114, 8.1844, 29.5899)
Luminance0.0818 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871C96 #2B961C
analogous
#4A1C96 #871C96 #961C68
triadic
#871C96 #96871C #1C9687
tetradic
#871C96 #964A1C #2B961C #1C6896
square
#871C96 #964A1C #2B961C #1C6896
split-complementary
#871C96 #68961C #1C964A
monochromatic
#2A092F #591262 #871C96 #B526CA #CC4EDE

Accessibility & contrast

On white

7.96
#871C96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#871C96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871C96
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871C96#FFFFFF#000000##FFFFFF
##871C961.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004999
Deuteranopia (green-blind)
#305593
Tritanopia (blue-blind)
#89365A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #871c96;
/* rgb */ color: rgb(135, 28, 150);
/* oklch */ color: oklch(46.0% 0.196 322.3);
Tailwind
colors: {
  custom: {
    50: '#ae67b5',
    500: '#871c96',
    950: '#000000',
  },
}
SCSS
$custom: #871c96;
$custom-light: #ae67b5;
$custom-dark: #000000;
JSON
{
  "hex": "#871c96",
  "rgb": {
    "r": 135,
    "g": 28,
    "b": 150
  },
  "hsl": {
    "h": 292.623,
    "s": 68.539,
    "l": 34.902
  },
  "oklch": {
    "l": 0.46014,
    "c": 0.19561,
    "h": 322.3
  },
  "luminance": 0.08183
}

Semantic roles & 50–950 ramp

primary
#871C96
secondary
#5BC14D
accent
#EB3C52
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110711
muted
#807A80

Preview Lab

Preview with #871C96

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

Preview Lab → · Contrast checker → · Palette generator →

#871C96 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva