#871D8F#871D8F

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

Color values

HEX#871D8F
RGBrgb(135, 29, 143)
HSLhsl(296, 66%, 34%)
HSVhsv(296, 80%, 56%)
CMYKcmyk(5.6%, 79.7%, 0%, 43.9%)
CIE-LABlab(34.01, 56.95, -38.98)
CIE-LCHlch(34.01, 69.01, 325.61°)
OKLaboklab(45.62% 0.1547 -0.1087)
OKLCHoklch(45.62% 0.189 324.9)
XYZxyz(15.3886, 8.0138, 26.7176)
Luminance0.0801 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871D8F #258F1D
analogous
#4E1D8F #871D8F #8F1D5E
triadic
#871D8F #8F871D #1D8F87
tetradic
#871D8F #8F4E1D #258F1D #1D5E8F
square
#871D8F #8F4E1D #258F1D #1D5E8F
split-complementary
#871D8F #5E8F1D #1D8F4E
monochromatic
#270829 #57135C #871D8F #B727C2 #D14CDB

Accessibility & contrast

On white

8.07
#871D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #871D8F
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871D8F#FFFFFF#000000##FFFFFF
##871D8F1.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004892
Deuteranopia (green-blind)
#36548C
Tritanopia (blue-blind)
#8A3356
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #871d8f;
/* rgb */ color: rgb(135, 29, 143);
/* oklch */ color: oklch(45.6% 0.189 324.9);
Tailwind
colors: {
  custom: {
    50: '#ae67b0',
    500: '#871d8f',
    950: '#000000',
  },
}
SCSS
$custom: #871d8f;
$custom-light: #ae67b0;
$custom-dark: #000000;
JSON
{
  "hex": "#871d8f",
  "rgb": {
    "r": 135,
    "g": 29,
    "b": 143
  },
  "hsl": {
    "h": 295.789,
    "s": 66.279,
    "l": 33.725
  },
  "oklch": {
    "l": 0.4562,
    "c": 0.18906,
    "h": 324.9
  },
  "luminance": 0.08013
}

Semantic roles & 50–950 ramp

primary
#871D8F
secondary
#53BD4B
accent
#E93F4B
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #871D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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