#871E8E#871E8E

#871E8E is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.6% C 0.187 H 325.3°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#871E8E
RGBrgb(135, 30, 142)
HSLhsl(296, 65%, 34%)
HSVhsv(296, 79%, 56%)
CMYKcmyk(4.9%, 78.9%, 0%, 44.3%)
CIE-LABlab(34.05, 56.47, -38.30)
CIE-LCHlch(34.05, 68.24, 325.85°)
OKLaboklab(45.63% 0.1539 -0.1067)
OKLCHoklch(45.63% 0.187 325.3)
XYZxyz(15.3381, 8.0335, 26.3287)
Luminance0.0803 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871E8E #258E1E
analogous
#4F1E8E #871E8E #8E1E5D
triadic
#871E8E #8E871E #1E8E87
tetradic
#871E8E #8E4F1E #258E1E #1E5D8E
square
#871E8E #8E4F1E #258E1E #1E5D8E
split-complementary
#871E8E #5D8E1E #1E8E4F
monochromatic
#270929 #57135B #871E8E #B729C1 #D14DD9

Accessibility & contrast

On white

8.06
#871E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#871E8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871E8E
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871E8E#FFFFFF#000000##FFFFFF
##871E8E1.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004891
Deuteranopia (green-blind)
#37548B
Tritanopia (blue-blind)
#8A3356
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #871e8e;
/* rgb */ color: rgb(135, 30, 142);
/* oklch */ color: oklch(45.6% 0.187 325.3);
Tailwind
colors: {
  custom: {
    50: '#ae67af',
    500: '#871e8e',
    950: '#000000',
  },
}
SCSS
$custom: #871e8e;
$custom-light: #ae67af;
$custom-dark: #000000;
JSON
{
  "hex": "#871e8e",
  "rgb": {
    "r": 135,
    "g": 30,
    "b": 142
  },
  "hsl": {
    "h": 296.25,
    "s": 65.116,
    "l": 33.725
  },
  "oklch": {
    "l": 0.45629,
    "c": 0.18731,
    "h": 325.3
  },
  "luminance": 0.08032
}

Semantic roles & 50–950 ramp

primary
#871E8E
secondary
#53BC4C
accent
#E8404A
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #871E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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