#871FA7#871FA7

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

Color values

HEX#871FA7
RGBrgb(135, 31, 167)
HSLhsl(286, 69%, 39%)
HSVhsv(286, 81%, 65%)
CMYKcmyk(19.2%, 81.4%, 0%, 34.5%)
CIE-LABlab(35.83, 60.79, -50.64)
CIE-LCHlch(35.83, 79.12, 320.20°)
OKLaboklab(47.42% 0.1499 -0.1429)
OKLCHoklch(47.42% 0.207 316.4)
XYZxyz(17.4556, 8.9216, 37.3543)
Luminance0.0892 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871FA7 #3FA71F
analogous
#431FA7 #871FA7 #A71F83
triadic
#871FA7 #A7871F #1FA787
tetradic
#871FA7 #A7431F #3FA71F #1F83A7
square
#871FA7 #A7431F #3FA71F #1F83A7
split-complementary
#871FA7 #83A71F #1FA743
monochromatic
#340C40 #5D1573 #871FA7 #AF2BD8 #C35FE1

Accessibility & contrast

On white

7.54
#871FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #871FA7
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871FA7#FFFFFF#000000##FFFFFF
##871FA71.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAB
Deuteranopia (green-blind)
#1E57A4
Tritanopia (blue-blind)
#854064
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #871fa7;
/* rgb */ color: rgb(135, 31, 167);
/* oklch */ color: oklch(47.4% 0.207 316.4);
Tailwind
colors: {
  custom: {
    50: '#ae69c2',
    500: '#871fa7',
    950: '#000000',
  },
}
SCSS
$custom: #871fa7;
$custom-light: #ae69c2;
$custom-dark: #000000;
JSON
{
  "hex": "#871fa7",
  "rgb": {
    "r": 135,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 285.882,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.47419,
    "c": 0.2071,
    "h": 316.4
  },
  "luminance": 0.08921
}

Semantic roles & 50–950 ramp

primary
#871FA7
secondary
#75C65C
accent
#EC3C66
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110712
muted
#807A81

Preview Lab

Preview with #871FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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