#871EAD#871EAD

#871EAD is a mid, highly saturated purple. Relative luminance 0.091; OKLCH L 47.8% C 0.213 H 314.6°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#871EAD
RGBrgb(135, 30, 173)
HSLhsl(284, 70%, 40%)
HSVhsv(284, 83%, 68%)
CMYKcmyk(22%, 82.7%, 0%, 32.2%)
CIE-LABlab(36.17, 62.24, -53.69)
CIE-LCHlch(36.17, 82.20, 319.22°)
OKLaboklab(47.79% 0.1495 -0.1518)
OKLCHoklch(47.79% 0.213 314.6)
XYZxyz(17.9975, 9.0972, 40.3350)
Luminance0.0910 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871EAD #44AD1E
analogous
#401EAD #871EAD #AD1E8B
triadic
#871EAD #AD871E #1EAD87
tetradic
#871EAD #AD401E #44AD1E #1E8BAD
square
#871EAD #AD401E #44AD1E #1E8BAD
split-complementary
#871EAD #8BAD1E #1EAD40
monochromatic
#360C45 #5E1579 #871EAD #AD2EDB #C162E4

Accessibility & contrast

On white

7.45
#871EAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#871EAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871EAD
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871EAD#FFFFFF#000000##FFFFFF
##871EAD1.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B1
Deuteranopia (green-blind)
#0F57AA
Tritanopia (blue-blind)
#834268
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #871ead;
/* rgb */ color: rgb(135, 30, 173);
/* oklch */ color: oklch(47.8% 0.213 314.6);
Tailwind
colors: {
  custom: {
    50: '#af69c6',
    500: '#871ead',
    950: '#000000',
  },
}
SCSS
$custom: #871ead;
$custom-light: #af69c6;
$custom-dark: #000000;
JSON
{
  "hex": "#871ead",
  "rgb": {
    "r": 135,
    "g": 30,
    "b": 173
  },
  "hsl": {
    "h": 284.056,
    "s": 70.443,
    "l": 39.804
  },
  "oklch": {
    "l": 0.47794,
    "c": 0.21303,
    "h": 314.6
  },
  "luminance": 0.09097
}

Semantic roles & 50–950 ramp

primary
#871EAD
secondary
#7BC85E
accent
#ED3B6A
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110713
muted
#807A82

Preview Lab

Preview with #871EAD

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

Preview Lab → · Contrast checker → · Palette generator →

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