#871EA7#871EA7

#871EA7 is a mid, highly saturated purple. Relative luminance 0.089; OKLCH L 47.3% C 0.208 H 316.4°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#871EA7
RGBrgb(135, 30, 167)
HSLhsl(286, 70%, 39%)
HSVhsv(286, 82%, 65%)
CMYKcmyk(19.2%, 82%, 0%, 34.5%)
CIE-LABlab(35.73, 61.08, -50.80)
CIE-LCHlch(35.73, 79.45, 320.25°)
OKLaboklab(47.35% 0.1507 -0.1433)
OKLCHoklch(47.35% 0.208 316.4)
XYZxyz(17.4299, 8.8702, 37.3457)
Luminance0.0887 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871EA7 #3EA71E
analogous
#421EA7 #871EA7 #A71E82
triadic
#871EA7 #A7871E #1EA787
tetradic
#871EA7 #A7421E #3EA71E #1E82A7
square
#871EA7 #A7421E #3EA71E #1E82A7
split-complementary
#871EA7 #82A71E #1EA742
monochromatic
#330B3F #5D1573 #871EA7 #B02AD9 #C35DE2

Accessibility & contrast

On white

7.57
#871EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#871EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871EA7
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871EA7#FFFFFF#000000##FFFFFF
##871EA71.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAB
Deuteranopia (green-blind)
#1D57A4
Tritanopia (blue-blind)
#853F64
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #871ea7;
/* rgb */ color: rgb(135, 30, 167);
/* oklch */ color: oklch(47.3% 0.208 316.4);
Tailwind
colors: {
  custom: {
    50: '#ae68c2',
    500: '#871ea7',
    950: '#000000',
  },
}
SCSS
$custom: #871ea7;
$custom-light: #ae68c2;
$custom-dark: #000000;
JSON
{
  "hex": "#871ea7",
  "rgb": {
    "r": 135,
    "g": 30,
    "b": 167
  },
  "hsl": {
    "h": 285.985,
    "s": 69.543,
    "l": 38.627
  },
  "oklch": {
    "l": 0.47349,
    "c": 0.20795,
    "h": 316.4
  },
  "luminance": 0.08869
}

Semantic roles & 50–950 ramp

primary
#871EA7
secondary
#74C65B
accent
#EC3B65
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110712
muted
#807A81

Preview Lab

Preview with #871EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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