#871C8D#871C8D

#871C8D is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.4% C 0.188 H 325.7°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#871C8D
RGBrgb(135, 28, 141)
HSLhsl(297, 67%, 33%)
HSVhsv(297, 80%, 55%)
CMYKcmyk(4.3%, 80.1%, 0%, 44.7%)
CIE-LABlab(33.79, 56.89, -38.11)
CIE-LCHlch(33.79, 68.48, 326.18°)
OKLaboklab(45.42% 0.1556 -0.1061)
OKLCHoklch(45.42% 0.188 325.7)
XYZxyz(15.2143, 7.9055, 25.9187)
Luminance0.0790 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871C8D #228D1C
analogous
#4E1C8D #871C8D #8D1C5A
triadic
#871C8D #8D871C #1C8D87
tetradic
#871C8D #8D4E1C #228D1C #1C5A8D
square
#871C8D #8D4E1C #228D1C #1C5A8D
split-complementary
#871C8D #5A8D1C #1C8D4E
monochromatic
#250827 #56125A #871C8D #B826C0 #D349DB

Accessibility & contrast

On white

8.14
#871C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#871C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871C8D
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871C8D#FFFFFF#000000##FFFFFF
##871C8D1.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004790
Deuteranopia (green-blind)
#37548A
Tritanopia (blue-blind)
#8A3155
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #871c8d;
/* rgb */ color: rgb(135, 28, 141);
/* oklch */ color: oklch(45.4% 0.188 325.7);
Tailwind
colors: {
  custom: {
    50: '#ae66af',
    500: '#871c8d',
    950: '#000000',
  },
}
SCSS
$custom: #871c8d;
$custom-light: #ae66af;
$custom-dark: #000000;
JSON
{
  "hex": "#871c8d",
  "rgb": {
    "r": 135,
    "g": 28,
    "b": 141
  },
  "hsl": {
    "h": 296.814,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.4542,
    "c": 0.18839,
    "h": 325.7
  },
  "luminance": 0.07904
}

Semantic roles & 50–950 ramp

primary
#871C8D
secondary
#4EBD48
accent
#EA3E47
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #871C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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