#871E88#871E88

#871E88 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.3% C 0.183 H 327.7°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#871E88
RGBrgb(135, 30, 136)
HSLhsl(299, 64%, 33%)
HSVhsv(299, 78%, 53%)
CMYKcmyk(0.7%, 77.9%, 0%, 46.7%)
CIE-LABlab(33.69, 55.44, -35.18)
CIE-LCHlch(33.69, 65.66, 327.60°)
OKLaboklab(45.25% 0.1542 -0.0976)
OKLCHoklch(45.25% 0.183 327.7)
XYZxyz(14.8997, 7.8581, 24.0198)
Luminance0.0786 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871E88 #1F881E
analogous
#521E88 #871E88 #881E54
triadic
#871E88 #88871E #1E8887
tetradic
#871E88 #88521E #1F881E #1E5488
square
#871E88 #88521E #1F881E #1E5488
split-complementary
#871E88 #54881E #1E8852
monochromatic
#230824 #551356 #871E88 #B929BA #D649D7

Accessibility & contrast

On white

8.17
#871E88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#871E88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871E88
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871E88#FFFFFF#000000##FFFFFF
##871E881.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478B
Deuteranopia (green-blind)
#3B5485
Tritanopia (blue-blind)
#8B3052
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #871e88;
/* rgb */ color: rgb(135, 30, 136);
/* oklch */ color: oklch(45.3% 0.183 327.7);
Tailwind
colors: {
  custom: {
    50: '#ae67ab',
    500: '#871e88',
    950: '#000000',
  },
}
SCSS
$custom: #871e88;
$custom-light: #ae67ab;
$custom-dark: #000000;
JSON
{
  "hex": "#871e88",
  "rgb": {
    "r": 135,
    "g": 30,
    "b": 136
  },
  "hsl": {
    "h": 299.434,
    "s": 63.855,
    "l": 32.549
  },
  "oklch": {
    "l": 0.4525,
    "c": 0.18252,
    "h": 327.7
  },
  "luminance": 0.07857
}

Semantic roles & 50–950 ramp

primary
#871E88
secondary
#4AB949
accent
#E74142
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #871E88

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

Preview Lab → · Contrast checker → · Palette generator →

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