#871CB4#871CB4

#871CB4 is a mid, highly saturated purple. Relative luminance 0.093; OKLCH L 48.2% C 0.221 H 312.6°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#871CB4
RGBrgb(135, 28, 180)
HSLhsl(282, 73%, 41%)
HSVhsv(282, 84%, 71%)
CMYKcmyk(25%, 84.4%, 0%, 29.4%)
CIE-LABlab(36.51, 64.17, -57.30)
CIE-LCHlch(36.51, 86.03, 318.23°)
OKLaboklab(48.2% 0.1491 -0.1624)
OKLCHoklch(48.2% 0.221 312.6)
XYZxyz(18.6436, 9.2773, 43.9798)
Luminance0.0928 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871CB4 #49B41C
analogous
#3B1CB4 #871CB4 #B41C95
triadic
#871CB4 #B4871C #1CB487
tetradic
#871CB4 #B43B1C #49B41C #1C95B4
square
#871CB4 #B43B1C #49B41C #1C95B4
split-complementary
#871CB4 #95B41C #1CB43B
monochromatic
#380C4A #5F147F #871CB4 #AA2FDF #C064E7

Accessibility & contrast

On white

7.35
#871CB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#871CB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871CB4
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871CB4#FFFFFF#000000##FFFFFF
##871CB41.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B8
Deuteranopia (green-blind)
#0058B1
Tritanopia (blue-blind)
#82456B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #871cb4;
/* rgb */ color: rgb(135, 28, 180);
/* oklch */ color: oklch(48.2% 0.221 312.6);
Tailwind
colors: {
  custom: {
    50: '#af69cb',
    500: '#871cb4',
    950: '#000000',
  },
}
SCSS
$custom: #871cb4;
$custom-light: #af69cb;
$custom-dark: #000000;
JSON
{
  "hex": "#871cb4",
  "rgb": {
    "r": 135,
    "g": 28,
    "b": 180
  },
  "hsl": {
    "h": 282.237,
    "s": 73.077,
    "l": 40.784
  },
  "oklch": {
    "l": 0.48198,
    "c": 0.2205,
    "h": 312.6
  },
  "luminance": 0.09277
}

Semantic roles & 50–950 ramp

primary
#871CB4
secondary
#80CC60
accent
#F0386E
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110713
muted
#807A82

Preview Lab

Preview with #871CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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