#871CA1#871CA1

#871CA1 is a mid, highly saturated purple. Relative luminance 0.086; OKLCH L 46.8% C 0.205 H 318.5°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#871CA1
RGBrgb(135, 28, 161)
HSLhsl(288, 70%, 37%)
HSVhsv(288, 83%, 63%)
CMYKcmyk(16.1%, 82.6%, 0%, 36.9%)
CIE-LABlab(35.11, 60.50, -48.19)
CIE-LCHlch(35.11, 77.35, 321.46°)
OKLaboklab(46.78% 0.1532 -0.1356)
OKLCHoklch(46.78% 0.205 318.5)
XYZxyz(16.8391, 8.5554, 34.4757)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871CA1 #36A11C
analogous
#451CA1 #871CA1 #A11C78
triadic
#871CA1 #A1871C #1CA187
tetradic
#871CA1 #A1451C #36A11C #1C78A1
square
#871CA1 #A1451C #36A11C #1C78A1
split-complementary
#871CA1 #78A11C #1CA145
monochromatic
#300A39 #5B136D #871CA1 #B325D5 #C656E2

Accessibility & contrast

On white

7.75
#871CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#871CA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871CA1
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871CA1#FFFFFF#000000##FFFFFF
##871CA11.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA4
Deuteranopia (green-blind)
#24569E
Tritanopia (blue-blind)
#863B60
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #871ca1;
/* rgb */ color: rgb(135, 28, 161);
/* oklch */ color: oklch(46.8% 0.205 318.5);
Tailwind
colors: {
  custom: {
    50: '#ae67bd',
    500: '#871ca1',
    950: '#000000',
  },
}
SCSS
$custom: #871ca1;
$custom-light: #ae67bd;
$custom-dark: #000000;
JSON
{
  "hex": "#871ca1",
  "rgb": {
    "r": 135,
    "g": 28,
    "b": 161
  },
  "hsl": {
    "h": 288.271,
    "s": 70.37,
    "l": 37.059
  },
  "oklch": {
    "l": 0.4678,
    "c": 0.20462,
    "h": 318.5
  },
  "luminance": 0.08555
}

Semantic roles & 50–950 ramp

primary
#871CA1
secondary
#6AC554
accent
#ED3B5E
background
#FBF6FB
surface
#F6EBF7
border
#D0C6D0
text
#110712
muted
#807A81

Preview Lab

Preview with #871CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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