#871B88#871B88

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

Color values

HEX#871B88
RGBrgb(135, 27, 136)
HSLhsl(299, 67%, 32%)
HSVhsv(299, 80%, 53%)
CMYKcmyk(0.7%, 80.1%, 0%, 46.7%)
CIE-LABlab(33.38, 56.32, -35.67)
CIE-LCHlch(33.38, 66.67, 327.65°)
OKLaboklab(45.03% 0.1567 -0.099)
OKLCHoklch(45.03% 0.185 327.7)
XYZxyz(14.8273, 7.7134, 23.9957)
Luminance0.0771 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871B88 #1C881B
analogous
#511B88 #871B88 #881B52
triadic
#871B88 #88871B #1B8887
tetradic
#871B88 #88511B #1C881B #1B5288
square
#871B88 #88511B #1C881B #1B5288
split-complementary
#871B88 #52881B #1B8851
monochromatic
#220722 #541155 #871B88 #BA25BB #D844DA

Accessibility & contrast

On white

8.26
#871B88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #871B88
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871B88#FFFFFF#000000##FFFFFF
##871B881.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468B
Deuteranopia (green-blind)
#3A5385
Tritanopia (blue-blind)
#8B2E52
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #871b88;
/* rgb */ color: rgb(135, 27, 136);
/* oklch */ color: oklch(45.0% 0.185 327.7);
Tailwind
colors: {
  custom: {
    50: '#ae66ab',
    500: '#871b88',
    950: '#000000',
  },
}
SCSS
$custom: #871b88;
$custom-light: #ae66ab;
$custom-dark: #000000;
JSON
{
  "hex": "#871b88",
  "rgb": {
    "r": 135,
    "g": 27,
    "b": 136
  },
  "hsl": {
    "h": 299.45,
    "s": 66.871,
    "l": 31.961
  },
  "oklch": {
    "l": 0.45032,
    "c": 0.18538,
    "h": 327.7
  },
  "luminance": 0.07712
}

Semantic roles & 50–950 ramp

primary
#871B88
secondary
#45BB44
accent
#EA3E40
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110610
muted
#807A7F

Preview Lab

Preview with #871B88

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

Preview Lab → · Contrast checker → · Palette generator →

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