#871F8A#871F8A

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

Color values

HEX#871F8A
RGBrgb(135, 31, 138)
HSLhsl(298, 63%, 33%)
HSVhsv(298, 78%, 54%)
CMYKcmyk(2.2%, 77.5%, 0%, 45.9%)
CIE-LABlab(33.91, 55.47, -36.06)
CIE-LCHlch(33.91, 66.16, 326.98°)
OKLaboklab(45.45% 0.1533 -0.1002)
OKLCHoklch(45.45% 0.183 326.8)
XYZxyz(15.0689, 7.9669, 24.7839)
Luminance0.0797 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871F8A #228A1F
analogous
#511F8A #871F8A #8A1F57
triadic
#871F8A #8A871F #1F8A87
tetradic
#871F8A #8A511F #228A1F #1F578A
square
#871F8A #8A511F #228A1F #1F578A
split-complementary
#871F8A #578A1F #1F8A51
monochromatic
#250926 #561458 #871F8A #B82ABC #D34CD7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##871F8A#FFFFFF#000000##FFFFFF
##871F8A1.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)
#00478D
Deuteranopia (green-blind)
#3A5487
Tritanopia (blue-blind)
#8B3154
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #871f8a;
/* rgb */ color: rgb(135, 31, 138);
/* oklch */ color: oklch(45.5% 0.183 326.8);
Tailwind
colors: {
  custom: {
    50: '#ae67ad',
    500: '#871f8a',
    950: '#000000',
  },
}
SCSS
$custom: #871f8a;
$custom-light: #ae67ad;
$custom-dark: #000000;
JSON
{
  "hex": "#871f8a",
  "rgb": {
    "r": 135,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 298.318,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.45452,
    "c": 0.18311,
    "h": 326.8
  },
  "luminance": 0.07966
}

Semantic roles & 50–950 ramp

primary
#871F8A
secondary
#4EBA4B
accent
#E64146
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #871F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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