#871CA0#871CA0

#871CA0 is a mid, highly saturated purple. Relative luminance 0.085; OKLCH L 46.7% C 0.204 H 318.8°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#871CA0
RGBrgb(135, 28, 160)
HSLhsl(289, 70%, 37%)
HSVhsv(289, 83%, 63%)
CMYKcmyk(15.6%, 82.5%, 0%, 37.3%)
CIE-LABlab(35.04, 60.32, -47.70)
CIE-LCHlch(35.04, 76.90, 321.66°)
OKLaboklab(46.71% 0.1534 -0.1342)
OKLCHoklch(46.71% 0.204 318.8)
XYZxyz(16.7512, 8.5203, 34.0131)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871CA0 #35A01C
analogous
#451CA0 #871CA0 #A01C77
triadic
#871CA0 #A0871C #1CA087
tetradic
#871CA0 #A0451C #35A01C #1C77A0
square
#871CA0 #A0451C #35A01C #1C77A0
split-complementary
#871CA0 #77A01C #1CA045
monochromatic
#2F0A38 #5B136C #871CA0 #B325D4 #C755E1

Accessibility & contrast

On white

7.77
#871CA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#871CA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871CA0
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871CA0#FFFFFF#000000##FFFFFF
##871CA01.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA3
Deuteranopia (green-blind)
#25569D
Tritanopia (blue-blind)
#873B60
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #871ca0;
/* rgb */ color: rgb(135, 28, 160);
/* oklch */ color: oklch(46.7% 0.204 318.8);
Tailwind
colors: {
  custom: {
    50: '#ae67bd',
    500: '#871ca0',
    950: '#000000',
  },
}
SCSS
$custom: #871ca0;
$custom-light: #ae67bd;
$custom-dark: #000000;
JSON
{
  "hex": "#871ca0",
  "rgb": {
    "r": 135,
    "g": 28,
    "b": 160
  },
  "hsl": {
    "h": 288.636,
    "s": 70.213,
    "l": 36.863
  },
  "oklch": {
    "l": 0.46709,
    "c": 0.2038,
    "h": 318.8
  },
  "luminance": 0.08519
}

Semantic roles & 50–950 ramp

primary
#871CA0
secondary
#69C453
accent
#ED3B5D
background
#FBF6FB
surface
#F6EBF7
border
#D0C6D0
text
#110712
muted
#807A81

Preview Lab

Preview with #871CA0

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

Preview Lab → · Contrast checker → · Palette generator →

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