#871D7C#871D7C

#871D7C is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.5% C 0.174 H 332.8°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#871D7C
RGBrgb(135, 29, 124)
HSLhsl(306, 65%, 32%)
HSVhsv(306, 79%, 53%)
CMYKcmyk(0%, 78.5%, 8.1%, 47.1%)
CIE-LABlab(32.89, 53.76, -28.96)
CIE-LCHlch(32.89, 61.07, 331.69°)
OKLaboklab(44.46% 0.1551 -0.0796)
OKLCHoklch(44.46% 0.174 332.8)
XYZxyz(14.0692, 7.4861, 19.7688)
Luminance0.0748 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871D7C #1D8728
analogous
#5D1D87 #871D7C #871D47
triadic
#871D7C #7C871D #1D7C87
tetradic
#871D7C #875D1D #1D8728 #1D4787
square
#871D7C #875D1D #1D8728 #1D4787
split-complementary
#871D7C #47871D #1D875D
monochromatic
#22071F #55124E #871D7C #B928AA #D747C8

Accessibility & contrast

On white

8.41
#871D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#871D7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871D7C
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871D7C#FFFFFF#000000##FFFFFF
##871D7C1.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17447F
Deuteranopia (green-blind)
#41537A
Tritanopia (blue-blind)
#8D294B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #871d7c;
/* rgb */ color: rgb(135, 29, 124);
/* oklch */ color: oklch(44.5% 0.174 332.8);
Tailwind
colors: {
  custom: {
    50: '#ad66a2',
    500: '#871d7c',
    950: '#000000',
  },
}
SCSS
$custom: #871d7c;
$custom-light: #ad66a2;
$custom-dark: #000000;
JSON
{
  "hex": "#871d7c",
  "rgb": {
    "r": 135,
    "g": 29,
    "b": 124
  },
  "hsl": {
    "h": 306.226,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.44458,
    "c": 0.17428,
    "h": 332.8
  },
  "luminance": 0.07485
}

Semantic roles & 50–950 ramp

primary
#871D7C
secondary
#46B952
accent
#E85240
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11060F
muted
#807A7F

Preview Lab

Preview with #871D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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