#871E7C#871E7C

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

Color values

HEX#871E7C
RGBrgb(135, 30, 124)
HSLhsl(306, 64%, 32%)
HSVhsv(306, 78%, 53%)
CMYKcmyk(0%, 77.8%, 8.1%, 47.1%)
CIE-LABlab(33.00, 53.45, -28.79)
CIE-LCHlch(33.00, 60.71, 331.70°)
OKLaboklab(44.54% 0.1542 -0.0791)
OKLCHoklch(44.54% 0.173 332.8)
XYZxyz(14.0941, 7.5359, 19.7771)
Luminance0.0754 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871E7C #1E8729
analogous
#5E1E87 #871E7C #871E47
triadic
#871E7C #7C871E #1E7C87
tetradic
#871E7C #875E1E #1E8729 #1E4787
square
#871E7C #875E1E #1E8729 #1E4787
split-complementary
#871E7C #47871E #1E875E
monochromatic
#230820 #55134E #871E7C #B929AA #D749C8

Accessibility & contrast

On white

8.38
#871E7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#871E7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871E7C
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871E7C#FFFFFF#000000##FFFFFF
##871E7C1.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18447F
Deuteranopia (green-blind)
#42537A
Tritanopia (blue-blind)
#8D2A4C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #871e7c;
/* rgb */ color: rgb(135, 30, 124);
/* oklch */ color: oklch(44.5% 0.173 332.8);
Tailwind
colors: {
  custom: {
    50: '#ad66a2',
    500: '#871e7c',
    950: '#000000',
  },
}
SCSS
$custom: #871e7c;
$custom-light: #ad66a2;
$custom-dark: #000000;
JSON
{
  "hex": "#871e7c",
  "rgb": {
    "r": 135,
    "g": 30,
    "b": 124
  },
  "hsl": {
    "h": 306.286,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.44536,
    "c": 0.17326,
    "h": 332.8
  },
  "luminance": 0.07535
}

Semantic roles & 50–950 ramp

primary
#871E7C
secondary
#48B954
accent
#E75241
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #871E7C

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

Preview Lab → · Contrast checker → · Palette generator →

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