#871B89#871B89

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

Color values

HEX#871B89
RGBrgb(135, 27, 137)
HSLhsl(299, 67%, 32%)
HSVhsv(299, 80%, 54%)
CMYKcmyk(1.5%, 80.3%, 0%, 46.3%)
CIE-LABlab(33.44, 56.49, -36.19)
CIE-LCHlch(33.44, 67.09, 327.35°)
OKLaboklab(45.1% 0.1567 -0.1005)
OKLCHoklch(45.1% 0.186 327.3)
XYZxyz(14.8987, 7.7420, 24.3717)
Luminance0.0774 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871B89 #1D891B
analogous
#501B89 #871B89 #891B54
triadic
#871B89 #89871B #1B8987
tetradic
#871B89 #89501B #1D891B #1B5489
square
#871B89 #89501B #1D891B #1B5489
split-complementary
#871B89 #54891B #1B8950
monochromatic
#220723 #551156 #871B89 #B925BC #D744DA

Accessibility & contrast

On white

8.24
#871B89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#871B89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871B89
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871B89#FFFFFF#000000##FFFFFF
##871B891.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #871b89;
/* rgb */ color: rgb(135, 27, 137);
/* oklch */ color: oklch(45.1% 0.186 327.3);
Tailwind
colors: {
  custom: {
    50: '#ae66ac',
    500: '#871b89',
    950: '#000000',
  },
}
SCSS
$custom: #871b89;
$custom-light: #ae66ac;
$custom-dark: #000000;
JSON
{
  "hex": "#871b89",
  "rgb": {
    "r": 135,
    "g": 27,
    "b": 137
  },
  "hsl": {
    "h": 298.909,
    "s": 67.073,
    "l": 32.157
  },
  "oklch": {
    "l": 0.45095,
    "c": 0.18617,
    "h": 327.3
  },
  "luminance": 0.07741
}

Semantic roles & 50–950 ramp

primary
#871B89
secondary
#46BC44
accent
#EA3E41
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #871B89

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

Preview Lab → · Contrast checker → · Palette generator →

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