#871E7D#871E7D

#871E7D is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.6% C 0.174 H 332.4°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#871E7D
RGBrgb(135, 30, 125)
HSLhsl(306, 64%, 32%)
HSVhsv(306, 78%, 53%)
CMYKcmyk(0%, 77.8%, 7.4%, 47.1%)
CIE-LABlab(33.05, 53.62, -29.33)
CIE-LCHlch(33.05, 61.11, 331.32°)
OKLaboklab(44.59% 0.1542 -0.0806)
OKLCHoklch(44.59% 0.174 332.4)
XYZxyz(14.1577, 7.5613, 20.1119)
Luminance0.0756 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871E7D #1E8728
analogous
#5C1E87 #871E7D #871E49
triadic
#871E7D #7D871E #1E7D87
tetradic
#871E7D #875C1E #1E8728 #1E4987
square
#871E7D #875C1E #1E8728 #1E4987
split-complementary
#871E7D #49871E #1E875C
monochromatic
#230820 #55134F #871E7D #B929AB #D749C9

Accessibility & contrast

On white

8.36
#871E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #871E7D
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871E7D#FFFFFF#000000##FFFFFF
##871E7D1.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174480
Deuteranopia (green-blind)
#41537B
Tritanopia (blue-blind)
#8D2A4C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #871e7d;
/* rgb */ color: rgb(135, 30, 125);
/* oklch */ color: oklch(44.6% 0.174 332.4);
Tailwind
colors: {
  custom: {
    50: '#ad66a3',
    500: '#871e7d',
    950: '#000000',
  },
}
SCSS
$custom: #871e7d;
$custom-light: #ad66a3;
$custom-dark: #000000;
JSON
{
  "hex": "#871e7d",
  "rgb": {
    "r": 135,
    "g": 30,
    "b": 125
  },
  "hsl": {
    "h": 305.714,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.44593,
    "c": 0.17401,
    "h": 332.4
  },
  "luminance": 0.0756
}

Semantic roles & 50–950 ramp

primary
#871E7D
secondary
#48B953
accent
#E75141
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #871E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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