#871DA7#871DA7

#871DA7 is a mid, highly saturated purple. Relative luminance 0.088; OKLCH L 47.3% C 0.209 H 316.5°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#871DA7
RGBrgb(135, 29, 167)
HSLhsl(286, 70%, 38%)
HSVhsv(286, 83%, 65%)
CMYKcmyk(19.2%, 82.6%, 0%, 34.5%)
CIE-LABlab(35.64, 61.36, -50.96)
CIE-LCHlch(35.64, 79.76, 320.29°)
OKLaboklab(47.28% 0.1514 -0.1438)
OKLCHoklch(47.28% 0.209 316.5)
XYZxyz(17.4050, 8.8204, 37.3374)
Luminance0.0882 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871DA7 #3DA71D
analogous
#421DA7 #871DA7 #A71D82
triadic
#871DA7 #A7871D #1DA787
tetradic
#871DA7 #A7421D #3DA71D #1D82A7
square
#871DA7 #A7421D #3DA71D #1D82A7
split-complementary
#871DA7 #82A71D #1DA742
monochromatic
#330B3F #5D1473 #871DA7 #B028DA #C35CE3

Accessibility & contrast

On white

7.60
#871DA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#871DA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871DA7
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871DA7#FFFFFF#000000##FFFFFF
##871DA71.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #871da7;
/* rgb */ color: rgb(135, 29, 167);
/* oklch */ color: oklch(47.3% 0.209 316.5);
Tailwind
colors: {
  custom: {
    50: '#ae68c2',
    500: '#871da7',
    950: '#000000',
  },
}
SCSS
$custom: #871da7;
$custom-light: #ae68c2;
$custom-dark: #000000;
JSON
{
  "hex": "#871da7",
  "rgb": {
    "r": 135,
    "g": 29,
    "b": 167
  },
  "hsl": {
    "h": 286.087,
    "s": 70.408,
    "l": 38.431
  },
  "oklch": {
    "l": 0.47281,
    "c": 0.20879,
    "h": 316.5
  },
  "luminance": 0.0882
}

Semantic roles & 50–950 ramp

primary
#871DA7
secondary
#73C759
accent
#ED3B64
background
#FBF6FC
surface
#F6EBF8
border
#D0C6D1
text
#110712
muted
#807A81

Preview Lab

Preview with #871DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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