#871FA8#871FA8

#871FA8 is a mid, highly saturated purple. Relative luminance 0.090; OKLCH L 47.5% C 0.208 H 316.1°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#871FA8
RGBrgb(135, 31, 168)
HSLhsl(286, 69%, 39%)
HSVhsv(286, 82%, 66%)
CMYKcmyk(19.6%, 81.5%, 0%, 34.1%)
CIE-LABlab(35.90, 60.98, -51.13)
CIE-LCHlch(35.90, 79.58, 320.02°)
OKLaboklab(47.49% 0.1498 -0.1443)
OKLCHoklch(47.49% 0.208 316.1)
XYZxyz(17.5484, 8.9587, 37.8430)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871FA8 #40A81F
analogous
#421FA8 #871FA8 #A81F85
triadic
#871FA8 #A8871F #1FA887
tetradic
#871FA8 #A8421F #40A81F #1F85A8
square
#871FA8 #A8421F #40A81F #1F85A8
split-complementary
#871FA8 #85A81F #1FA842
monochromatic
#340C41 #5D1574 #871FA8 #AF2CD8 #C260E2

Accessibility & contrast

On white

7.52
#871FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#871FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871FA8
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871FA8#FFFFFF#000000##FFFFFF
##871FA81.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAC
Deuteranopia (green-blind)
#1C57A5
Tritanopia (blue-blind)
#854065
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #871fa8;
/* rgb */ color: rgb(135, 31, 168);
/* oklch */ color: oklch(47.5% 0.208 316.1);
Tailwind
colors: {
  custom: {
    50: '#ae69c3',
    500: '#871fa8',
    950: '#000000',
  },
}
SCSS
$custom: #871fa8;
$custom-light: #ae69c3;
$custom-dark: #000000;
JSON
{
  "hex": "#871fa8",
  "rgb": {
    "r": 135,
    "g": 31,
    "b": 168
  },
  "hsl": {
    "h": 285.547,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.47492,
    "c": 0.20795,
    "h": 316.1
  },
  "luminance": 0.08958
}

Semantic roles & 50–950 ramp

primary
#871FA8
secondary
#76C65D
accent
#EC3C66
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110712
muted
#807A81

Preview Lab

Preview with #871FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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