#871E8C#871E8C

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

Color values

HEX#871E8C
RGBrgb(135, 30, 140)
HSLhsl(297, 65%, 33%)
HSVhsv(297, 79%, 55%)
CMYKcmyk(3.6%, 78.6%, 0%, 45.1%)
CIE-LABlab(33.93, 56.12, -37.27)
CIE-LCHlch(33.93, 67.37, 326.41°)
OKLaboklab(45.5% 0.1541 -0.1037)
OKLCHoklch(45.5% 0.186 326.1)
XYZxyz(15.1893, 7.9739, 25.5450)
Luminance0.0797 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871E8C #238C1E
analogous
#501E8C #871E8C #8C1E5A
triadic
#871E8C #8C871E #1E8C87
tetradic
#871E8C #8C501E #238C1E #1E5A8C
square
#871E8C #8C501E #238C1E #1E5A8C
split-complementary
#871E8C #5A8C1E #1E8C50
monochromatic
#260827 #56135A #871E8C #B829BE #D24CD9

Accessibility & contrast

On white

8.09
#871E8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #871E8C
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871E8C#FFFFFF#000000##FFFFFF
##871E8C1.008.092.598.09
#FFFFFF8.091.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488F
Deuteranopia (green-blind)
#395489
Tritanopia (blue-blind)
#8B3255
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #871e8c;
/* rgb */ color: rgb(135, 30, 140);
/* oklch */ color: oklch(45.5% 0.186 326.1);
Tailwind
colors: {
  custom: {
    50: '#ae67ae',
    500: '#871e8c',
    950: '#000000',
  },
}
SCSS
$custom: #871e8c;
$custom-light: #ae67ae;
$custom-dark: #000000;
JSON
{
  "hex": "#871e8c",
  "rgb": {
    "r": 135,
    "g": 30,
    "b": 140
  },
  "hsl": {
    "h": 297.273,
    "s": 64.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.45501,
    "c": 0.18571,
    "h": 326.1
  },
  "luminance": 0.07973
}

Semantic roles & 50–950 ramp

primary
#871E8C
secondary
#50BB4B
accent
#E84048
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #871E8C

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

Preview Lab → · Contrast checker → · Palette generator →

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