#871C8B#871C8B

#871C8B is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.3% C 0.187 H 326.5°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#871C8B
RGBrgb(135, 28, 139)
HSLhsl(298, 66%, 33%)
HSVhsv(298, 80%, 55%)
CMYKcmyk(2.9%, 79.9%, 0%, 45.5%)
CIE-LABlab(33.66, 56.55, -37.08)
CIE-LCHlch(33.66, 67.62, 326.75°)
OKLaboklab(45.29% 0.1558 -0.1031)
OKLCHoklch(45.29% 0.187 326.5)
XYZxyz(15.0669, 7.8465, 25.1421)
Luminance0.0785 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871C8B #208B1C
analogous
#501C8B #871C8B #8B1C57
triadic
#871C8B #8B871C #1C8B87
tetradic
#871C8B #8B501C #208B1C #1C578B
square
#871C8B #8B501C #208B1C #1C578B
split-complementary
#871C8B #578B1C #1C8B50
monochromatic
#240725 #561258 #871C8B #B826BE #D547DA

Accessibility & contrast

On white

8.17
#871C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#871C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871C8B
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871C8B#FFFFFF#000000##FFFFFF
##871C8B1.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478E
Deuteranopia (green-blind)
#385488
Tritanopia (blue-blind)
#8B3054
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #871c8b;
/* rgb */ color: rgb(135, 28, 139);
/* oklch */ color: oklch(45.3% 0.187 326.5);
Tailwind
colors: {
  custom: {
    50: '#ae66ad',
    500: '#871c8b',
    950: '#000000',
  },
}
SCSS
$custom: #871c8b;
$custom-light: #ae66ad;
$custom-dark: #000000;
JSON
{
  "hex": "#871c8b",
  "rgb": {
    "r": 135,
    "g": 28,
    "b": 139
  },
  "hsl": {
    "h": 297.838,
    "s": 66.467,
    "l": 32.745
  },
  "oklch": {
    "l": 0.45292,
    "c": 0.18682,
    "h": 326.5
  },
  "luminance": 0.07845
}

Semantic roles & 50–950 ramp

primary
#871C8B
secondary
#4BBC47
accent
#E93E45
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #871C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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