#871996#871996

#871996 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.8% C 0.198 H 322.4°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#871996
RGBrgb(135, 25, 150)
HSLhsl(293, 71%, 34%)
HSVhsv(293, 83%, 59%)
CMYKcmyk(10%, 83.3%, 0%, 41.2%)
CIE-LABlab(34.08, 59.29, -43.16)
CIE-LCHlch(34.08, 73.34, 323.95°)
OKLaboklab(45.82% 0.157 -0.1209)
OKLCHoklch(45.82% 0.198 322.4)
XYZxyz(15.8438, 8.0491, 29.5674)
Luminance0.0805 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871996 #289619
analogous
#491996 #871996 #961967
triadic
#871996 #968719 #199687
tetradic
#871996 #964919 #289619 #196796
square
#871996 #964919 #289619 #196796
split-complementary
#871996 #679619 #199649
monochromatic
#29082D #581062 #871996 #B622CA #CE49E1

Accessibility & contrast

On white

8.05
#871996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#871996 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871996
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871996#FFFFFF#000000##FFFFFF
##8719961.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004899
Deuteranopia (green-blind)
#2E5493
Tritanopia (blue-blind)
#893559
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #871996;
/* rgb */ color: rgb(135, 25, 150);
/* oklch */ color: oklch(45.8% 0.198 322.4);
Tailwind
colors: {
  custom: {
    50: '#ae66b5',
    500: '#871996',
    950: '#000000',
  },
}
SCSS
$custom: #871996;
$custom-light: #ae66b5;
$custom-dark: #000000;
JSON
{
  "hex": "#871996",
  "rgb": {
    "r": 135,
    "g": 25,
    "b": 150
  },
  "hsl": {
    "h": 292.8,
    "s": 71.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.45817,
    "c": 0.19814,
    "h": 322.4
  },
  "luminance": 0.08048
}

Semantic roles & 50–950 ramp

primary
#871996
secondary
#57C249
accent
#EE3A4F
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110711
muted
#807A80

Preview Lab

Preview with #871996

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

Preview Lab → · Contrast checker → · Palette generator →

#871996 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva