#871C8F#871C8F

#871C8F is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.5% C 0.190 H 324.9°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#871C8F
RGBrgb(135, 28, 143)
HSLhsl(296, 67%, 34%)
HSVhsv(296, 80%, 56%)
CMYKcmyk(5.6%, 80.4%, 0%, 43.9%)
CIE-LABlab(33.91, 57.24, -39.14)
CIE-LCHlch(33.91, 69.34, 325.63°)
OKLaboklab(45.55% 0.1555 -0.1092)
OKLCHoklch(45.55% 0.19 324.9)
XYZxyz(15.3645, 7.9656, 26.7095)
Luminance0.0796 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871C8F #248F1C
analogous
#4D1C8F #871C8F #8F1C5D
triadic
#871C8F #8F871C #1C8F87
tetradic
#871C8F #8F4D1C #248F1C #1C5D8F
square
#871C8F #8F4D1C #248F1C #1C5D8F
split-complementary
#871C8F #5D8F1C #1C8F4D
monochromatic
#260829 #57125C #871C8F #B726C2 #D14ADC

Accessibility & contrast

On white

8.10
#871C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #871C8F
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871C8F#FFFFFF#000000##FFFFFF
##871C8F1.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004892
Deuteranopia (green-blind)
#36548C
Tritanopia (blue-blind)
#8A3256
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #871c8f;
/* rgb */ color: rgb(135, 28, 143);
/* oklch */ color: oklch(45.5% 0.190 324.9);
Tailwind
colors: {
  custom: {
    50: '#ae67b0',
    500: '#871c8f',
    950: '#000000',
  },
}
SCSS
$custom: #871c8f;
$custom-light: #ae67b0;
$custom-dark: #000000;
JSON
{
  "hex": "#871c8f",
  "rgb": {
    "r": 135,
    "g": 28,
    "b": 143
  },
  "hsl": {
    "h": 295.826,
    "s": 67.251,
    "l": 33.529
  },
  "oklch": {
    "l": 0.45549,
    "c": 0.18999,
    "h": 324.9
  },
  "luminance": 0.07965
}

Semantic roles & 50–950 ramp

primary
#871C8F
secondary
#51BE49
accent
#EA3E4A
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #871C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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