#871E97#871E97

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

Color values

HEX#871E97
RGBrgb(135, 30, 151)
HSLhsl(292, 67%, 35%)
HSVhsv(292, 80%, 59%)
CMYKcmyk(10.6%, 80.1%, 0%, 40.8%)
CIE-LABlab(34.63, 58.08, -42.90)
CIE-LCHlch(34.63, 72.20, 323.55°)
OKLaboklab(46.22% 0.1531 -0.1201)
OKLCHoklch(46.22% 0.195 321.9)
XYZxyz(16.0413, 8.3147, 30.0321)
Luminance0.0831 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871E97 #2E971E
analogous
#4A1E97 #871E97 #971E6A
triadic
#871E97 #97871E #1E9787
tetradic
#871E97 #974A1E #2E971E #1E6A97
square
#871E97 #974A1E #2E971E #1E6A97
split-complementary
#871E97 #6A971E #1E974A
monochromatic
#2C0A31 #591464 #871E97 #B528CA #CA53DD

Accessibility & contrast

On white

7.89
#871E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#871E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871E97
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871E97#FFFFFF#000000##FFFFFF
##871E971.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9A
Deuteranopia (green-blind)
#305594
Tritanopia (blue-blind)
#88375B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #871e97;
/* rgb */ color: rgb(135, 30, 151);
/* oklch */ color: oklch(46.2% 0.195 321.9);
Tailwind
colors: {
  custom: {
    50: '#ae68b6',
    500: '#871e97',
    950: '#000000',
  },
}
SCSS
$custom: #871e97;
$custom-light: #ae68b6;
$custom-dark: #000000;
JSON
{
  "hex": "#871e97",
  "rgb": {
    "r": 135,
    "g": 30,
    "b": 151
  },
  "hsl": {
    "h": 292.066,
    "s": 66.851,
    "l": 35.49
  },
  "oklch": {
    "l": 0.46223,
    "c": 0.19463,
    "h": 321.9
  },
  "luminance": 0.08314
}

Semantic roles & 50–950 ramp

primary
#871E97
secondary
#60C051
accent
#EA3E55
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110711
muted
#807A80

Preview Lab

Preview with #871E97

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

Preview Lab → · Contrast checker → · Palette generator →

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