#871FA1#871FA1

#871FA1 is a mid, highly saturated purple. Relative luminance 0.087; OKLCH L 47.0% C 0.202 H 318.4°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#871FA1
RGBrgb(135, 31, 161)
HSLhsl(288, 68%, 38%)
HSVhsv(288, 81%, 63%)
CMYKcmyk(16.1%, 80.7%, 0%, 36.9%)
CIE-LABlab(35.41, 59.64, -47.71)
CIE-LCHlch(35.41, 76.38, 321.34°)
OKLaboklab(46.99% 0.151 -0.1343)
OKLCHoklch(46.99% 0.202 318.4)
XYZxyz(16.9138, 8.7049, 34.5006)
Luminance0.0870 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871FA1 #39A11F
analogous
#461FA1 #871FA1 #A11F7A
triadic
#871FA1 #A1871F #1FA187
tetradic
#871FA1 #A1461F #39A11F #1F7AA1
square
#871FA1 #A1461F #39A11F #1F7AA1
split-complementary
#871FA1 #7AA11F #1FA146
monochromatic
#310B3A #5C156E #871FA1 #B229D4 #C55BDF

Accessibility & contrast

On white

7.66
#871FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#871FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871FA1
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871FA1#FFFFFF#000000##FFFFFF
##871FA11.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA4
Deuteranopia (green-blind)
#26569E
Tritanopia (blue-blind)
#863D61
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #871fa1;
/* rgb */ color: rgb(135, 31, 161);
/* oklch */ color: oklch(47.0% 0.202 318.4);
Tailwind
colors: {
  custom: {
    50: '#ae69bd',
    500: '#871fa1',
    950: '#000000',
  },
}
SCSS
$custom: #871fa1;
$custom-light: #ae69bd;
$custom-dark: #000000;
JSON
{
  "hex": "#871fa1",
  "rgb": {
    "r": 135,
    "g": 31,
    "b": 161
  },
  "hsl": {
    "h": 288,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.46988,
    "c": 0.20204,
    "h": 318.4
  },
  "luminance": 0.08704
}

Semantic roles & 50–950 ramp

primary
#871FA1
secondary
#6EC458
accent
#EB3D60
background
#FBF6FB
surface
#F6EBF7
border
#D0C6D0
text
#110712
muted
#807A81

Preview Lab

Preview with #871FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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