#871BAD#871BAD

#871BAD is a mid, highly saturated purple. Relative luminance 0.090; OKLCH L 47.6% C 0.215 H 314.7°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#871BAD
RGBrgb(135, 27, 173)
HSLhsl(284, 73%, 39%)
HSVhsv(284, 84%, 68%)
CMYKcmyk(22%, 84.4%, 0%, 32.2%)
CIE-LABlab(35.89, 63.06, -54.14)
CIE-LCHlch(35.89, 83.11, 319.35°)
OKLaboklab(47.6% 0.1515 -0.1531)
OKLCHoklch(47.6% 0.215 314.7)
XYZxyz(17.9252, 8.9526, 40.3108)
Luminance0.0895 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871BAD #41AD1B
analogous
#3E1BAD #871BAD #AD1B8A
triadic
#871BAD #AD871B #1BAD87
tetradic
#871BAD #AD3E1B #41AD1B #1B8AAD
square
#871BAD #AD3E1B #41AD1B #1B8AAD
split-complementary
#871BAD #8AAD1B #1BAD3E
monochromatic
#340A43 #5E1378 #871BAD #AE28DD #C25DE6

Accessibility & contrast

On white

7.53
#871BAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#871BAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871BAD
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871BAD#FFFFFF#000000##FFFFFF
##871BAD1.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB1
Deuteranopia (green-blind)
#0A57AA
Tritanopia (blue-blind)
#834167
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #871bad;
/* rgb */ color: rgb(135, 27, 173);
/* oklch */ color: oklch(47.6% 0.215 314.7);
Tailwind
colors: {
  custom: {
    50: '#af68c6',
    500: '#871bad',
    950: '#000000',
  },
}
SCSS
$custom: #871bad;
$custom-light: #af68c6;
$custom-dark: #000000;
JSON
{
  "hex": "#871bad",
  "rgb": {
    "r": 135,
    "g": 27,
    "b": 173
  },
  "hsl": {
    "h": 284.384,
    "s": 73,
    "l": 39.216
  },
  "oklch": {
    "l": 0.476,
    "c": 0.21537,
    "h": 314.7
  },
  "luminance": 0.08952
}

Semantic roles & 50–950 ramp

primary
#871BAD
secondary
#77CA5A
accent
#F03868
background
#FBF6FC
surface
#F6EBF8
border
#D0C6D1
text
#110713
muted
#807A82

Preview Lab

Preview with #871BAD

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

Preview Lab → · Contrast checker → · Palette generator →

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