#871EA1#871EA1

#871EA1 is a mid, highly saturated purple. Relative luminance 0.087; OKLCH L 46.9% C 0.203 H 318.4°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#871EA1
RGBrgb(135, 30, 161)
HSLhsl(288, 69%, 37%)
HSVhsv(288, 81%, 63%)
CMYKcmyk(16.1%, 81.4%, 0%, 36.9%)
CIE-LABlab(35.31, 59.94, -47.88)
CIE-LCHlch(35.31, 76.71, 321.38°)
OKLaboklab(46.92% 0.1517 -0.1347)
OKLCHoklch(46.92% 0.203 318.4)
XYZxyz(16.8881, 8.6535, 34.4920)
Luminance0.0865 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871EA1 #38A11E
analogous
#461EA1 #871EA1 #A11E79
triadic
#871EA1 #A1871E #1EA187
tetradic
#871EA1 #A1461E #38A11E #1E79A1
square
#871EA1 #A1461E #38A11E #1E79A1
split-complementary
#871EA1 #79A11E #1EA146
monochromatic
#300B3A #5C146D #871EA1 #B228D5 #C559E0

Accessibility & contrast

On white

7.69
#871EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#871EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871EA1
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871EA1#FFFFFF#000000##FFFFFF
##871EA11.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA4
Deuteranopia (green-blind)
#25569E
Tritanopia (blue-blind)
#863C61
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #871ea1;
/* rgb */ color: rgb(135, 30, 161);
/* oklch */ color: oklch(46.9% 0.203 318.4);
Tailwind
colors: {
  custom: {
    50: '#ae68bd',
    500: '#871ea1',
    950: '#000000',
  },
}
SCSS
$custom: #871ea1;
$custom-light: #ae68bd;
$custom-dark: #000000;
JSON
{
  "hex": "#871ea1",
  "rgb": {
    "r": 135,
    "g": 30,
    "b": 161
  },
  "hsl": {
    "h": 288.092,
    "s": 68.586,
    "l": 37.451
  },
  "oklch": {
    "l": 0.46917,
    "c": 0.20293,
    "h": 318.4
  },
  "luminance": 0.08653
}

Semantic roles & 50–950 ramp

primary
#871EA1
secondary
#6DC457
accent
#EB3C5F
background
#FBF6FB
surface
#F6EBF7
border
#D0C6D0
text
#110712
muted
#807A81

Preview Lab

Preview with #871EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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