#871A89#871A89

#871A89 is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.0% C 0.187 H 327.3°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#871A89
RGBrgb(135, 26, 137)
HSLhsl(299, 68%, 32%)
HSVhsv(299, 81%, 54%)
CMYKcmyk(1.5%, 81%, 0%, 46.3%)
CIE-LABlab(33.34, 56.77, -36.35)
CIE-LCHlch(33.34, 67.41, 327.37°)
OKLaboklab(45.03% 0.1575 -0.101)
OKLCHoklch(45.03% 0.187 327.3)
XYZxyz(14.8762, 7.6969, 24.3642)
Luminance0.0770 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871A89 #1C891A
analogous
#501A89 #871A89 #891A54
triadic
#871A89 #89871A #1A8987
tetradic
#871A89 #89501A #1C891A #1A5489
square
#871A89 #89501A #1C891A #1A5489
split-complementary
#871A89 #54891A #1A8950
monochromatic
#220622 #541056 #871A89 #BA24BC #D842DB

Accessibility & contrast

On white

8.27
#871A89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#871A89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871A89
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871A89#FFFFFF#000000##FFFFFF
##871A891.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468C
Deuteranopia (green-blind)
#395386
Tritanopia (blue-blind)
#8B2E52
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #871a89;
/* rgb */ color: rgb(135, 26, 137);
/* oklch */ color: oklch(45.0% 0.187 327.3);
Tailwind
colors: {
  custom: {
    50: '#ae66ac',
    500: '#871a89',
    950: '#000000',
  },
}
SCSS
$custom: #871a89;
$custom-light: #ae66ac;
$custom-dark: #000000;
JSON
{
  "hex": "#871a89",
  "rgb": {
    "r": 135,
    "g": 26,
    "b": 137
  },
  "hsl": {
    "h": 298.919,
    "s": 68.098,
    "l": 31.961
  },
  "oklch": {
    "l": 0.45027,
    "c": 0.18706,
    "h": 327.3
  },
  "luminance": 0.07696
}

Semantic roles & 50–950 ramp

primary
#871A89
secondary
#45BC43
accent
#EB3D40
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110610
muted
#807A7F

Preview Lab

Preview with #871A89

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

Preview Lab → · Contrast checker → · Palette generator →

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