#871FAE#871FAE

#871FAE is a mid, highly saturated purple. Relative luminance 0.092; OKLCH L 47.9% C 0.213 H 314.2°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#871FAE
RGBrgb(135, 31, 174)
HSLhsl(284, 70%, 40%)
HSVhsv(284, 82%, 68%)
CMYKcmyk(22.4%, 82.2%, 0%, 31.8%)
CIE-LABlab(36.34, 62.15, -54.01)
CIE-LCHlch(36.34, 82.34, 319.01°)
OKLaboklab(47.94% 0.1485 -0.1527)
OKLCHoklch(47.94% 0.213 314.2)
XYZxyz(18.1203, 9.1875, 40.8550)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871FAE #46AE1F
analogous
#3F1FAE #871FAE #AE1F8E
triadic
#871FAE #AE871F #1FAE87
tetradic
#871FAE #AE3F1F #46AE1F #1F8EAE
square
#871FAE #AE3F1F #46AE1F #1F8EAE
split-complementary
#871FAE #8EAE1F #1FAE3F
monochromatic
#360C46 #5F167A #871FAE #AC30DA #C164E3

Accessibility & contrast

On white

7.40
#871FAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#871FAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871FAE
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871FAE#FFFFFF#000000##FFFFFF
##871FAE1.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B2
Deuteranopia (green-blind)
#0E58AB
Tritanopia (blue-blind)
#834368
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #871fae;
/* rgb */ color: rgb(135, 31, 174);
/* oklch */ color: oklch(47.9% 0.213 314.2);
Tailwind
colors: {
  custom: {
    50: '#af69c7',
    500: '#871fae',
    950: '#000000',
  },
}
SCSS
$custom: #871fae;
$custom-light: #af69c7;
$custom-dark: #000000;
JSON
{
  "hex": "#871fae",
  "rgb": {
    "r": 135,
    "g": 31,
    "b": 174
  },
  "hsl": {
    "h": 283.636,
    "s": 69.756,
    "l": 40.196
  },
  "oklch": {
    "l": 0.47937,
    "c": 0.21305,
    "h": 314.2
  },
  "luminance": 0.09187
}

Semantic roles & 50–950 ramp

primary
#871FAE
secondary
#7DC860
accent
#ED3B6C
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110713
muted
#807A82

Preview Lab

Preview with #871FAE

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

Preview Lab → · Contrast checker → · Palette generator →

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