#871EAE#871EAE

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

Color values

HEX#871EAE
RGBrgb(135, 30, 174)
HSLhsl(284, 71%, 40%)
HSVhsv(284, 83%, 68%)
CMYKcmyk(22.4%, 82.8%, 0%, 31.8%)
CIE-LABlab(36.24, 62.44, -54.17)
CIE-LCHlch(36.24, 82.66, 319.06°)
OKLaboklab(47.87% 0.1492 -0.1532)
OKLCHoklch(47.87% 0.214 314.2)
XYZxyz(18.0946, 9.1361, 40.8465)
Luminance0.0914 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871EAE #45AE1E
analogous
#3F1EAE #871EAE #AE1E8D
triadic
#871EAE #AE871E #1EAE87
tetradic
#871EAE #AE3F1E #45AE1E #1E8DAE
square
#871EAE #AE3F1E #45AE1E #1E8DAE
split-complementary
#871EAE #8DAE1E #1EAE3F
monochromatic
#360C46 #5E157A #871EAE #AC2EDB #C162E4

Accessibility & contrast

On white

7.43
#871EAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#871EAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871EAE
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871EAE#FFFFFF#000000##FFFFFF
##871EAE1.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #871eae;
/* rgb */ color: rgb(135, 30, 174);
/* oklch */ color: oklch(47.9% 0.214 314.2);
Tailwind
colors: {
  custom: {
    50: '#af69c7',
    500: '#871eae',
    950: '#000000',
  },
}
SCSS
$custom: #871eae;
$custom-light: #af69c7;
$custom-dark: #000000;
JSON
{
  "hex": "#871eae",
  "rgb": {
    "r": 135,
    "g": 30,
    "b": 174
  },
  "hsl": {
    "h": 283.75,
    "s": 70.588,
    "l": 40
  },
  "oklch": {
    "l": 0.47869,
    "c": 0.21388,
    "h": 314.2
  },
  "luminance": 0.09135
}

Semantic roles & 50–950 ramp

primary
#871EAE
secondary
#7CC95F
accent
#ED3A6B
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110713
muted
#807A82

Preview Lab

Preview with #871EAE

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

Preview Lab → · Contrast checker → · Palette generator →

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