#871D8B#871D8B

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

Color values

HEX#871D8B
RGBrgb(135, 29, 139)
HSLhsl(298, 65%, 33%)
HSVhsv(298, 79%, 55%)
CMYKcmyk(2.9%, 79.1%, 0%, 45.5%)
CIE-LABlab(33.76, 56.25, -36.91)
CIE-LCHlch(33.76, 67.28, 326.73°)
OKLaboklab(45.36% 0.155 -0.1027)
OKLCHoklch(45.36% 0.186 326.5)
XYZxyz(15.0910, 7.8948, 25.1501)
Luminance0.0789 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871D8B #218B1D
analogous
#501D8B #871D8B #8B1D58
triadic
#871D8B #8B871D #1D8B87
tetradic
#871D8B #8B501D #218B1D #1D588B
square
#871D8B #8B501D #218B1D #1D588B
split-complementary
#871D8B #588B1D #1D8B50
monochromatic
#250826 #561258 #871D8B #B828BE #D449D9

Accessibility & contrast

On white

8.14
#871D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #871D8B
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871D8B#FFFFFF#000000##FFFFFF
##871D8B1.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #871d8b;
/* rgb */ color: rgb(135, 29, 139);
/* oklch */ color: oklch(45.4% 0.186 326.5);
Tailwind
colors: {
  custom: {
    50: '#ae67ad',
    500: '#871d8b',
    950: '#000000',
  },
}
SCSS
$custom: #871d8b;
$custom-light: #ae67ad;
$custom-dark: #000000;
JSON
{
  "hex": "#871d8b",
  "rgb": {
    "r": 135,
    "g": 29,
    "b": 139
  },
  "hsl": {
    "h": 297.818,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.45364,
    "c": 0.18587,
    "h": 326.5
  },
  "luminance": 0.07894
}

Semantic roles & 50–950 ramp

primary
#871D8B
secondary
#4DBB49
accent
#E83F46
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #871D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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