#871D96#871D96

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

Color values

HEX#871D96
RGBrgb(135, 29, 150)
HSLhsl(293, 68%, 35%)
HSVhsv(293, 81%, 59%)
CMYKcmyk(10%, 80.7%, 0%, 41.2%)
CIE-LABlab(34.46, 58.19, -42.55)
CIE-LCHlch(34.46, 72.09, 323.82°)
OKLaboklab(46.08% 0.154 -0.1191)
OKLCHoklch(46.08% 0.195 322.3)
XYZxyz(15.9355, 8.2326, 29.5979)
Luminance0.0823 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871D96 #2C961D
analogous
#4A1D96 #871D96 #961D68
triadic
#871D96 #96871D #1D9687
tetradic
#871D96 #964A1D #2C961D #1D6896
square
#871D96 #964A1D #2C961D #1D6896
split-complementary
#871D96 #68961D #1D964A
monochromatic
#2B092F #591363 #871D96 #B527C9 #CC50DD

Accessibility & contrast

On white

7.94
#871D96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#871D96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871D96
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871D96#FFFFFF#000000##FFFFFF
##871D961.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #871d96;
/* rgb */ color: rgb(135, 29, 150);
/* oklch */ color: oklch(46.1% 0.195 322.3);
Tailwind
colors: {
  custom: {
    50: '#ae67b5',
    500: '#871d96',
    950: '#000000',
  },
}
SCSS
$custom: #871d96;
$custom-light: #ae67b5;
$custom-dark: #000000;
JSON
{
  "hex": "#871d96",
  "rgb": {
    "r": 135,
    "g": 29,
    "b": 150
  },
  "hsl": {
    "h": 292.562,
    "s": 67.598,
    "l": 35.098
  },
  "oklch": {
    "l": 0.46084,
    "c": 0.19473,
    "h": 322.3
  },
  "luminance": 0.08232
}

Semantic roles & 50–950 ramp

primary
#871D96
secondary
#5DC04F
accent
#EA3D53
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110711
muted
#807A80

Preview Lab

Preview with #871D96

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

Preview Lab → · Contrast checker → · Palette generator →

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