#871E7F#871E7F

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

Color values

HEX#871E7F
RGBrgb(135, 30, 127)
HSLhsl(305, 64%, 32%)
HSVhsv(305, 78%, 53%)
CMYKcmyk(0%, 77.8%, 5.9%, 47.1%)
CIE-LABlab(33.16, 53.94, -30.41)
CIE-LCHlch(33.16, 61.92, 330.59°)
OKLaboklab(44.71% 0.1543 -0.0838)
OKLCHoklch(44.71% 0.176 331.5)
XYZxyz(14.2867, 7.6129, 20.7915)
Luminance0.0761 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871E7F #1E8726
analogous
#5A1E87 #871E7F #871E4B
triadic
#871E7F #7F871E #1E7F87
tetradic
#871E7F #875A1E #1E8726 #1E4B87
square
#871E7F #875A1E #1E8726 #1E4B87
split-complementary
#871E7F #4B871E #1E875A
monochromatic
#230821 #551350 #871E7F #B929AE #D749CC

Accessibility & contrast

On white

8.33
#871E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #871E7F
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871E7F#FFFFFF#000000##FFFFFF
##871E7F1.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144582
Deuteranopia (green-blind)
#40537D
Tritanopia (blue-blind)
#8D2B4D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #871e7f;
/* rgb */ color: rgb(135, 30, 127);
/* oklch */ color: oklch(44.7% 0.176 331.5);
Tailwind
colors: {
  custom: {
    50: '#ad67a4',
    500: '#871e7f',
    950: '#000000',
  },
}
SCSS
$custom: #871e7f;
$custom-light: #ad67a4;
$custom-dark: #000000;
JSON
{
  "hex": "#871e7f",
  "rgb": {
    "r": 135,
    "g": 30,
    "b": 127
  },
  "hsl": {
    "h": 304.571,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.44709,
    "c": 0.17553,
    "h": 331.5
  },
  "luminance": 0.07612
}

Semantic roles & 50–950 ramp

primary
#871E7F
secondary
#48B951
accent
#E74E41
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #871E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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