#871D8E#871D8E

#871D8E is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.6% C 0.188 H 325.3°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#871D8E
RGBrgb(135, 29, 142)
HSLhsl(296, 66%, 34%)
HSVhsv(296, 80%, 56%)
CMYKcmyk(4.9%, 79.6%, 0%, 44.3%)
CIE-LABlab(33.95, 56.77, -38.47)
CIE-LCHlch(33.95, 68.58, 325.88°)
OKLaboklab(45.56% 0.1548 -0.1072)
OKLCHoklch(45.56% 0.188 325.3)
XYZxyz(15.3132, 7.9837, 26.3204)
Luminance0.0798 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871D8E #248E1D
analogous
#4E1D8E #871D8E #8E1D5C
triadic
#871D8E #8E871D #1D8E87
tetradic
#871D8E #8E4E1D #248E1D #1D5C8E
square
#871D8E #8E4E1D #248E1D #1D5C8E
split-complementary
#871D8E #5C8E1D #1D8E4E
monochromatic
#260828 #57135B #871D8E #B727C1 #D14BDA

Accessibility & contrast

On white

8.09
#871D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#871D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871D8E
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871D8E#FFFFFF#000000##FFFFFF
##871D8E1.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004891
Deuteranopia (green-blind)
#37548B
Tritanopia (blue-blind)
#8A3255
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #871d8e;
/* rgb */ color: rgb(135, 29, 142);
/* oklch */ color: oklch(45.6% 0.188 325.3);
Tailwind
colors: {
  custom: {
    50: '#ae67af',
    500: '#871d8e',
    950: '#000000',
  },
}
SCSS
$custom: #871d8e;
$custom-light: #ae67af;
$custom-dark: #000000;
JSON
{
  "hex": "#871d8e",
  "rgb": {
    "r": 135,
    "g": 29,
    "b": 142
  },
  "hsl": {
    "h": 296.283,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.45556,
    "c": 0.18827,
    "h": 325.3
  },
  "luminance": 0.07983
}

Semantic roles & 50–950 ramp

primary
#871D8E
secondary
#51BD4A
accent
#E93F49
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #871D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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