#871D8D#871D8D

#871D8D is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.5% C 0.187 H 325.7°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#871D8D
RGBrgb(135, 29, 141)
HSLhsl(297, 66%, 33%)
HSVhsv(297, 79%, 55%)
CMYKcmyk(4.3%, 79.4%, 0%, 44.7%)
CIE-LABlab(33.89, 56.60, -37.95)
CIE-LCHlch(33.89, 68.14, 326.16°)
OKLaboklab(45.49% 0.1548 -0.1057)
OKLCHoklch(45.49% 0.187 325.7)
XYZxyz(15.2384, 7.9538, 25.9268)
Luminance0.0795 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871D8D #238D1D
analogous
#4F1D8D #871D8D #8D1D5B
triadic
#871D8D #8D871D #1D8D87
tetradic
#871D8D #8D4F1D #238D1D #1D5B8D
square
#871D8D #8D4F1D #238D1D #1D5B8D
split-complementary
#871D8D #5B8D1D #1D8D4F
monochromatic
#260827 #56135A #871D8D #B827C0 #D24BDA

Accessibility & contrast

On white

8.11
#871D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#871D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871D8D
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871D8D#FFFFFF#000000##FFFFFF
##871D8D1.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #871d8d;
/* rgb */ color: rgb(135, 29, 141);
/* oklch */ color: oklch(45.5% 0.187 325.7);
Tailwind
colors: {
  custom: {
    50: '#ae67af',
    500: '#871d8d',
    950: '#000000',
  },
}
SCSS
$custom: #871d8d;
$custom-light: #ae67af;
$custom-dark: #000000;
JSON
{
  "hex": "#871d8d",
  "rgb": {
    "r": 135,
    "g": 29,
    "b": 141
  },
  "hsl": {
    "h": 296.786,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.45491,
    "c": 0.18746,
    "h": 325.7
  },
  "luminance": 0.07953
}

Semantic roles & 50–950 ramp

primary
#871D8D
secondary
#50BC4A
accent
#E93F48
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #871D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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