#871D89#871D89

#871D89 is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.2% C 0.184 H 327.3°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#871D89
RGBrgb(135, 29, 137)
HSLhsl(299, 65%, 33%)
HSVhsv(299, 79%, 54%)
CMYKcmyk(1.5%, 78.8%, 0%, 46.3%)
CIE-LABlab(33.64, 55.91, -35.87)
CIE-LCHlch(33.64, 66.43, 327.32°)
OKLaboklab(45.24% 0.155 -0.0996)
OKLCHoklch(45.24% 0.184 327.3)
XYZxyz(14.9462, 7.8369, 24.3875)
Luminance0.0784 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871D89 #1F891D
analogous
#511D89 #871D89 #891D55
triadic
#871D89 #89871D #1D8987
tetradic
#871D89 #89511D #1F891D #1D5589
square
#871D89 #89511D #1F891D #1D5589
split-complementary
#871D89 #55891D #1D8951
monochromatic
#230824 #551256 #871D89 #B928BC #D648D8

Accessibility & contrast

On white

8.18
#871D89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#871D89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871D89
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871D89#FFFFFF#000000##FFFFFF
##871D891.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478C
Deuteranopia (green-blind)
#3A5486
Tritanopia (blue-blind)
#8B3053
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #871d89;
/* rgb */ color: rgb(135, 29, 137);
/* oklch */ color: oklch(45.2% 0.184 327.3);
Tailwind
colors: {
  custom: {
    50: '#ae67ac',
    500: '#871d89',
    950: '#000000',
  },
}
SCSS
$custom: #871d89;
$custom-light: #ae67ac;
$custom-dark: #000000;
JSON
{
  "hex": "#871d89",
  "rgb": {
    "r": 135,
    "g": 29,
    "b": 137
  },
  "hsl": {
    "h": 298.889,
    "s": 65.06,
    "l": 32.549
  },
  "oklch": {
    "l": 0.45238,
    "c": 0.18429,
    "h": 327.3
  },
  "luminance": 0.07836
}

Semantic roles & 50–950 ramp

primary
#871D89
secondary
#4ABA47
accent
#E84043
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #871D89

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

Preview Lab → · Contrast checker → · Palette generator →

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