#871BA0#871BA0

#871BA0 is a mid, highly saturated purple. Relative luminance 0.085; OKLCH L 46.6% C 0.205 H 318.9°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#871BA0
RGBrgb(135, 27, 160)
HSLhsl(289, 71%, 37%)
HSVhsv(289, 83%, 63%)
CMYKcmyk(15.6%, 83.1%, 0%, 37.3%)
CIE-LABlab(34.95, 60.59, -47.85)
CIE-LCHlch(34.95, 77.20, 321.70°)
OKLaboklab(46.64% 0.1541 -0.1346)
OKLCHoklch(46.64% 0.205 318.9)
XYZxyz(16.7279, 8.4737, 34.0053)
Luminance0.0847 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871BA0 #34A01B
analogous
#451BA0 #871BA0 #A01B77
triadic
#871BA0 #A0871B #1BA087
tetradic
#871BA0 #A0451B #34A01B #1B77A0
square
#871BA0 #A0451B #34A01B #1B77A0
split-complementary
#871BA0 #77A01B #1BA045
monochromatic
#2F0937 #5B126C #871BA0 #B324D4 #C753E2

Accessibility & contrast

On white

7.79
#871BA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#871BA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871BA0
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871BA0#FFFFFF#000000##FFFFFF
##871BA01.007.792.697.79
#FFFFFF7.791.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA3
Deuteranopia (green-blind)
#25559D
Tritanopia (blue-blind)
#873B5F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #871ba0;
/* rgb */ color: rgb(135, 27, 160);
/* oklch */ color: oklch(46.6% 0.205 318.9);
Tailwind
colors: {
  custom: {
    50: '#ae67bd',
    500: '#871ba0',
    950: '#000000',
  },
}
SCSS
$custom: #871ba0;
$custom-light: #ae67bd;
$custom-dark: #000000;
JSON
{
  "hex": "#871ba0",
  "rgb": {
    "r": 135,
    "g": 27,
    "b": 160
  },
  "hsl": {
    "h": 288.722,
    "s": 71.123,
    "l": 36.667
  },
  "oklch": {
    "l": 0.46643,
    "c": 0.20462,
    "h": 318.9
  },
  "luminance": 0.08473
}

Semantic roles & 50–950 ramp

primary
#871BA0
secondary
#67C552
accent
#EE3A5C
background
#FBF6FB
surface
#F6EBF7
border
#D0C6D0
text
#110712
muted
#807A81

Preview Lab

Preview with #871BA0

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

Preview Lab → · Contrast checker → · Palette generator →

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