#871E8B#871E8B

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

Color values

HEX#871E8B
RGBrgb(135, 30, 139)
HSLhsl(298, 64%, 33%)
HSVhsv(298, 78%, 55%)
CMYKcmyk(2.9%, 78.4%, 0%, 45.5%)
CIE-LABlab(33.87, 55.95, -36.75)
CIE-LCHlch(33.87, 66.94, 326.70°)
OKLaboklab(45.44% 0.1541 -0.1022)
OKLCHoklch(45.44% 0.185 326.5)
XYZxyz(15.1159, 7.9446, 25.1584)
Luminance0.0794 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871E8B #228B1E
analogous
#501E8B #871E8B #8B1E58
triadic
#871E8B #8B871E #1E8B87
tetradic
#871E8B #8B501E #228B1E #1E588B
square
#871E8B #8B501E #228B1E #1E588B
split-complementary
#871E8B #588B1E #1E8B50
monochromatic
#250826 #561359 #871E8B #B829BD #D34BD8

Accessibility & contrast

On white

8.11
#871E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #871E8B
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871E8B#FFFFFF#000000##FFFFFF
##871E8B1.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478E
Deuteranopia (green-blind)
#395488
Tritanopia (blue-blind)
#8B3154
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #871e8b;
/* rgb */ color: rgb(135, 30, 139);
/* oklch */ color: oklch(45.4% 0.185 326.5);
Tailwind
colors: {
  custom: {
    50: '#ae67ad',
    500: '#871e8b',
    950: '#000000',
  },
}
SCSS
$custom: #871e8b;
$custom-light: #ae67ad;
$custom-dark: #000000;
JSON
{
  "hex": "#871e8b",
  "rgb": {
    "r": 135,
    "g": 30,
    "b": 139
  },
  "hsl": {
    "h": 297.798,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.45438,
    "c": 0.18491,
    "h": 326.5
  },
  "luminance": 0.07944
}

Semantic roles & 50–950 ramp

primary
#871E8B
secondary
#4EBB4A
accent
#E74046
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #871E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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