#871F8B#871F8B

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

Color values

HEX#871F8B
RGBrgb(135, 31, 139)
HSLhsl(298, 64%, 33%)
HSVhsv(298, 78%, 55%)
CMYKcmyk(2.9%, 77.7%, 0%, 45.5%)
CIE-LABlab(33.97, 55.64, -36.58)
CIE-LCHlch(33.97, 66.59, 326.68°)
OKLaboklab(45.51% 0.1532 -0.1017)
OKLCHoklch(45.51% 0.184 326.4)
XYZxyz(15.1416, 7.9960, 25.1670)
Luminance0.0799 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871F8B #238B1F
analogous
#511F8B #871F8B #8B1F59
triadic
#871F8B #8B871F #1F8B87
tetradic
#871F8B #8B511F #238B1F #1F598B
square
#871F8B #8B511F #238B1F #1F598B
split-complementary
#871F8B #598B1F #1F8B51
monochromatic
#260927 #561459 #871F8B #B82ABD #D24DD7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##871F8B#FFFFFF#000000##FFFFFF
##871F8B1.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)
#00488E
Deuteranopia (green-blind)
#3A5488
Tritanopia (blue-blind)
#8B3254
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #871f8b;
/* rgb */ color: rgb(135, 31, 139);
/* oklch */ color: oklch(45.5% 0.184 326.4);
Tailwind
colors: {
  custom: {
    50: '#ae67ad',
    500: '#871f8b',
    950: '#000000',
  },
}
SCSS
$custom: #871f8b;
$custom-light: #ae67ad;
$custom-dark: #000000;
JSON
{
  "hex": "#871f8b",
  "rgb": {
    "r": 135,
    "g": 31,
    "b": 139
  },
  "hsl": {
    "h": 297.778,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.45514,
    "c": 0.18391,
    "h": 326.4
  },
  "luminance": 0.07995
}

Semantic roles & 50–950 ramp

primary
#871F8B
secondary
#50BA4C
accent
#E74147
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #871F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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