#871E7E#871E7E

#871E7E is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.7% C 0.175 H 331.9°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#871E7E
RGBrgb(135, 30, 126)
HSLhsl(305, 64%, 32%)
HSVhsv(305, 78%, 53%)
CMYKcmyk(0%, 77.8%, 6.7%, 47.1%)
CIE-LABlab(33.11, 53.78, -29.87)
CIE-LCHlch(33.11, 61.51, 330.95°)
OKLaboklab(44.65% 0.1542 -0.0822)
OKLCHoklch(44.65% 0.175 331.9)
XYZxyz(14.2219, 7.5870, 20.4500)
Luminance0.0759 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871E7E #1E8727
analogous
#5C1E87 #871E7E #871E49
triadic
#871E7E #7E871E #1E7E87
tetradic
#871E7E #875C1E #1E8727 #1E4987
square
#871E7E #875C1E #1E8727 #1E4987
split-complementary
#871E7E #49871E #1E875C
monochromatic
#230821 #55134F #871E7E #B929AD #D749CA

Accessibility & contrast

On white

8.34
#871E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#871E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871E7E
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871E7E#FFFFFF#000000##FFFFFF
##871E7E1.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164481
Deuteranopia (green-blind)
#41537C
Tritanopia (blue-blind)
#8D2B4D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #871e7e;
/* rgb */ color: rgb(135, 30, 126);
/* oklch */ color: oklch(44.7% 0.175 331.9);
Tailwind
colors: {
  custom: {
    50: '#ad67a4',
    500: '#871e7e',
    950: '#000000',
  },
}
SCSS
$custom: #871e7e;
$custom-light: #ad67a4;
$custom-dark: #000000;
JSON
{
  "hex": "#871e7e",
  "rgb": {
    "r": 135,
    "g": 30,
    "b": 126
  },
  "hsl": {
    "h": 305.143,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.44651,
    "c": 0.17476,
    "h": 331.9
  },
  "luminance": 0.07586
}

Semantic roles & 50–950 ramp

primary
#871E7E
secondary
#48B952
accent
#E74F41
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #871E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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