#871F96#871F96

#871F96 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.2% C 0.193 H 322.2°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#871F96
RGBrgb(135, 31, 150)
HSLhsl(292, 66%, 35%)
HSVhsv(292, 79%, 59%)
CMYKcmyk(10%, 79.3%, 0%, 41.2%)
CIE-LABlab(34.67, 57.60, -42.22)
CIE-LCHlch(34.67, 71.42, 323.76°)
OKLaboklab(46.23% 0.1524 -0.1182)
OKLCHoklch(46.23% 0.193 322.2)
XYZxyz(15.9861, 8.3338, 29.6148)
Luminance0.0833 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871F96 #2E961F
analogous
#4B1F96 #871F96 #961F69
triadic
#871F96 #96871F #1F9687
tetradic
#871F96 #964B1F #2E961F #1F6996
square
#871F96 #964B1F #2E961F #1F6996
split-complementary
#871F96 #69961F #1F964B
monochromatic
#2C0A31 #591563 #871F96 #B529C9 #CA54DC

Accessibility & contrast

On white

7.88
#871F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#871F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871F96
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871F96#FFFFFF#000000##FFFFFF
##871F961.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A99
Deuteranopia (green-blind)
#315593
Tritanopia (blue-blind)
#89375A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #871f96;
/* rgb */ color: rgb(135, 31, 150);
/* oklch */ color: oklch(46.2% 0.193 322.2);
Tailwind
colors: {
  custom: {
    50: '#ae68b5',
    500: '#871f96',
    950: '#000000',
  },
}
SCSS
$custom: #871f96;
$custom-light: #ae68b5;
$custom-dark: #000000;
JSON
{
  "hex": "#871f96",
  "rgb": {
    "r": 135,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 292.437,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.46229,
    "c": 0.19288,
    "h": 322.2
  },
  "luminance": 0.08333
}

Semantic roles & 50–950 ramp

primary
#871F96
secondary
#60BF52
accent
#E93F54
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110711
muted
#807A80

Preview Lab

Preview with #871F96

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

Preview Lab → · Contrast checker → · Palette generator →

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