#871C8E#871C8E

#871C8E is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.5% C 0.189 H 325.3°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#871C8E
RGBrgb(135, 28, 142)
HSLhsl(296, 67%, 33%)
HSVhsv(296, 80%, 56%)
CMYKcmyk(4.9%, 80.3%, 0%, 44.3%)
CIE-LABlab(33.85, 57.06, -38.63)
CIE-LCHlch(33.85, 68.91, 325.90°)
OKLaboklab(45.48% 0.1556 -0.1077)
OKLCHoklch(45.48% 0.189 325.3)
XYZxyz(15.2891, 7.9354, 26.3123)
Luminance0.0793 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871C8E #238E1C
analogous
#4E1C8E #871C8E #8E1C5C
triadic
#871C8E #8E871C #1C8E87
tetradic
#871C8E #8E4E1C #238E1C #1C5C8E
square
#871C8E #8E4E1C #238E1C #1C5C8E
split-complementary
#871C8E #5C8E1C #1C8E4E
monochromatic
#260828 #56125B #871C8E #B826C1 #D249DB

Accessibility & contrast

On white

8.12
#871C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#871C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871C8E
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871C8E#FFFFFF#000000##FFFFFF
##871C8E1.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004791
Deuteranopia (green-blind)
#36548B
Tritanopia (blue-blind)
#8A3255
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #871c8e;
/* rgb */ color: rgb(135, 28, 142);
/* oklch */ color: oklch(45.5% 0.189 325.3);
Tailwind
colors: {
  custom: {
    50: '#ae67af',
    500: '#871c8e',
    950: '#000000',
  },
}
SCSS
$custom: #871c8e;
$custom-light: #ae67af;
$custom-dark: #000000;
JSON
{
  "hex": "#871c8e",
  "rgb": {
    "r": 135,
    "g": 28,
    "b": 142
  },
  "hsl": {
    "h": 296.316,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.45484,
    "c": 0.18919,
    "h": 325.3
  },
  "luminance": 0.07934
}

Semantic roles & 50–950 ramp

primary
#871C8E
secondary
#50BD49
accent
#EA3E48
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #871C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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