#871FA6#871FA6

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

Color values

HEX#871FA6
RGBrgb(135, 31, 166)
HSLhsl(286, 69%, 39%)
HSVhsv(286, 81%, 65%)
CMYKcmyk(18.7%, 81.3%, 0%, 34.9%)
CIE-LABlab(35.76, 60.60, -50.16)
CIE-LCHlch(35.76, 78.66, 320.38°)
OKLaboklab(47.35% 0.1501 -0.1414)
OKLCHoklch(47.35% 0.206 316.7)
XYZxyz(17.3635, 8.8848, 36.8693)
Luminance0.0888 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871FA6 #3EA61F
analogous
#431FA6 #871FA6 #A61F81
triadic
#871FA6 #A6871F #1FA687
tetradic
#871FA6 #A6431F #3EA61F #1F81A6
square
#871FA6 #A6431F #3EA61F #1F81A6
split-complementary
#871FA6 #81A61F #1FA643
monochromatic
#330C3F #5D1572 #871FA6 #B02BD7 #C35EE1

Accessibility & contrast

On white

7.56
#871FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#871FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871FA6
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871FA6#FFFFFF#000000##FFFFFF
##871FA61.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #871fa6;
/* rgb */ color: rgb(135, 31, 166);
/* oklch */ color: oklch(47.3% 0.206 316.7);
Tailwind
colors: {
  custom: {
    50: '#ae69c1',
    500: '#871fa6',
    950: '#000000',
  },
}
SCSS
$custom: #871fa6;
$custom-light: #ae69c1;
$custom-dark: #000000;
JSON
{
  "hex": "#871fa6",
  "rgb": {
    "r": 135,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 286.222,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.47347,
    "c": 0.20626,
    "h": 316.7
  },
  "luminance": 0.08884
}

Semantic roles & 50–950 ramp

primary
#871FA6
secondary
#74C55B
accent
#EB3C65
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110712
muted
#807A81

Preview Lab

Preview with #871FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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