#871D7B#871D7B

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

Color values

HEX#871D7B
RGBrgb(135, 29, 123)
HSLhsl(307, 65%, 32%)
HSVhsv(307, 79%, 53%)
CMYKcmyk(0%, 78.5%, 8.9%, 47.1%)
CIE-LABlab(32.83, 53.61, -28.42)
CIE-LCHlch(32.83, 60.67, 332.07°)
OKLaboklab(44.4% 0.155 -0.078)
OKLCHoklch(44.4% 0.174 333.3)
XYZxyz(14.0063, 7.4609, 19.4375)
Luminance0.0746 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871D7B #1D8729
analogous
#5E1D87 #871D7B #871D46
triadic
#871D7B #7B871D #1D7B87
tetradic
#871D7B #875E1D #1D8729 #1D4687
square
#871D7B #875E1D #1D8729 #1D4687
split-complementary
#871D7B #46871D #1D875E
monochromatic
#22071F #55124D #871D7B #B928A9 #D747C7

Accessibility & contrast

On white

8.43
#871D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#871D7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871D7B
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871D7B#FFFFFF#000000##FFFFFF
##871D7B1.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18447D
Deuteranopia (green-blind)
#425379
Tritanopia (blue-blind)
#8D284B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #871d7b;
/* rgb */ color: rgb(135, 29, 123);
/* oklch */ color: oklch(44.4% 0.174 333.3);
Tailwind
colors: {
  custom: {
    50: '#ad66a1',
    500: '#871d7b',
    950: '#000000',
  },
}
SCSS
$custom: #871d7b;
$custom-light: #ad66a1;
$custom-dark: #000000;
JSON
{
  "hex": "#871d7b",
  "rgb": {
    "r": 135,
    "g": 29,
    "b": 123
  },
  "hsl": {
    "h": 306.792,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.44401,
    "c": 0.17354,
    "h": 333.3
  },
  "luminance": 0.0746
}

Semantic roles & 50–950 ramp

primary
#871D7B
secondary
#46B953
accent
#E85340
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060F
muted
#807A7E

Preview Lab

Preview with #871D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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