#871E8D#871E8D

#871E8D is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.6% C 0.187 H 325.7°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#871E8D
RGBrgb(135, 30, 141)
HSLhsl(297, 65%, 34%)
HSVhsv(297, 79%, 55%)
CMYKcmyk(4.3%, 78.7%, 0%, 44.7%)
CIE-LABlab(33.99, 56.30, -37.79)
CIE-LCHlch(33.99, 67.80, 326.13°)
OKLaboklab(45.57% 0.154 -0.1052)
OKLCHoklch(45.57% 0.187 325.7)
XYZxyz(15.2633, 8.0036, 25.9351)
Luminance0.0800 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871E8D #248D1E
analogous
#4F1E8D #871E8D #8D1E5B
triadic
#871E8D #8D871E #1E8D87
tetradic
#871E8D #8D4F1E #248D1E #1E5B8D
square
#871E8D #8D4F1E #248D1E #1E5B8D
split-complementary
#871E8D #5B8D1E #1E8D4F
monochromatic
#260928 #57135B #871E8D #B729BF #D14CD9

Accessibility & contrast

On white

8.08
#871E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#871E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871E8D
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871E8D#FFFFFF#000000##FFFFFF
##871E8D1.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004890
Deuteranopia (green-blind)
#38548A
Tritanopia (blue-blind)
#8A3255
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #871e8d;
/* rgb */ color: rgb(135, 30, 141);
/* oklch */ color: oklch(45.6% 0.187 325.7);
Tailwind
colors: {
  custom: {
    50: '#ae67af',
    500: '#871e8d',
    950: '#000000',
  },
}
SCSS
$custom: #871e8d;
$custom-light: #ae67af;
$custom-dark: #000000;
JSON
{
  "hex": "#871e8d",
  "rgb": {
    "r": 135,
    "g": 30,
    "b": 141
  },
  "hsl": {
    "h": 296.757,
    "s": 64.912,
    "l": 33.529
  },
  "oklch": {
    "l": 0.45565,
    "c": 0.18651,
    "h": 325.7
  },
  "luminance": 0.08003
}

Semantic roles & 50–950 ramp

primary
#871E8D
secondary
#51BC4B
accent
#E84049
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #871E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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