#871C8C#871C8C

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

Color values

HEX#871C8C
RGBrgb(135, 28, 140)
HSLhsl(297, 67%, 33%)
HSVhsv(297, 80%, 55%)
CMYKcmyk(3.6%, 80%, 0%, 45.1%)
CIE-LABlab(33.72, 56.72, -37.60)
CIE-LCHlch(33.72, 68.05, 326.46°)
OKLaboklab(45.36% 0.1557 -0.1046)
OKLCHoklch(45.36% 0.188 326.1)
XYZxyz(15.1403, 7.8759, 25.5286)
Luminance0.0788 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871C8C #218C1C
analogous
#4F1C8C #871C8C #8C1C59
triadic
#871C8C #8C871C #1C8C87
tetradic
#871C8C #8C4F1C #218C1C #1C598C
square
#871C8C #8C4F1C #218C1C #1C598C
split-complementary
#871C8C #598C1C #1C8C4F
monochromatic
#250826 #561259 #871C8C #B826BF #D448DA

Accessibility & contrast

On white

8.16
#871C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #871C8C
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871C8C#FFFFFF#000000##FFFFFF
##871C8C1.008.162.588.16
#FFFFFF8.161.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478F
Deuteranopia (green-blind)
#385489
Tritanopia (blue-blind)
#8B3154
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #871c8c;
/* rgb */ color: rgb(135, 28, 140);
/* oklch */ color: oklch(45.4% 0.188 326.1);
Tailwind
colors: {
  custom: {
    50: '#ae66ae',
    500: '#871c8c',
    950: '#000000',
  },
}
SCSS
$custom: #871c8c;
$custom-light: #ae66ae;
$custom-dark: #000000;
JSON
{
  "hex": "#871c8c",
  "rgb": {
    "r": 135,
    "g": 28,
    "b": 140
  },
  "hsl": {
    "h": 297.321,
    "s": 66.667,
    "l": 32.941
  },
  "oklch": {
    "l": 0.45355,
    "c": 0.1876,
    "h": 326.1
  },
  "luminance": 0.07875
}

Semantic roles & 50–950 ramp

primary
#871C8C
secondary
#4DBC48
accent
#EA3E46
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #871C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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