#871EA0#871EA0

#871EA0 is a mid, highly saturated purple. Relative luminance 0.086; OKLCH L 46.8% C 0.202 H 318.7°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#871EA0
RGBrgb(135, 30, 160)
HSLhsl(288, 68%, 37%)
HSVhsv(288, 81%, 63%)
CMYKcmyk(15.6%, 81.3%, 0%, 37.3%)
CIE-LABlab(35.24, 59.75, -47.38)
CIE-LCHlch(35.24, 76.26, 321.58°)
OKLaboklab(46.85% 0.1519 -0.1333)
OKLCHoklch(46.85% 0.202 318.7)
XYZxyz(16.8002, 8.6183, 34.0295)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871EA0 #37A01E
analogous
#461EA0 #871EA0 #A01E78
triadic
#871EA0 #A0871E #1EA087
tetradic
#871EA0 #A0461E #37A01E #1E78A0
square
#871EA0 #A0461E #37A01E #1E78A0
split-complementary
#871EA0 #78A01E #1EA046
monochromatic
#300B39 #5C146C #871EA0 #B228D4 #C659E0

Accessibility & contrast

On white

7.71
#871EA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#871EA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871EA0
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871EA0#FFFFFF#000000##FFFFFF
##871EA01.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA3
Deuteranopia (green-blind)
#27569D
Tritanopia (blue-blind)
#873C60
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #871ea0;
/* rgb */ color: rgb(135, 30, 160);
/* oklch */ color: oklch(46.8% 0.202 318.7);
Tailwind
colors: {
  custom: {
    50: '#ae68bd',
    500: '#871ea0',
    950: '#000000',
  },
}
SCSS
$custom: #871ea0;
$custom-light: #ae68bd;
$custom-dark: #000000;
JSON
{
  "hex": "#871ea0",
  "rgb": {
    "r": 135,
    "g": 30,
    "b": 160
  },
  "hsl": {
    "h": 288.462,
    "s": 68.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.46846,
    "c": 0.20209,
    "h": 318.7
  },
  "luminance": 0.08618
}

Semantic roles & 50–950 ramp

primary
#871EA0
secondary
#6BC456
accent
#EB3D5E
background
#FBF6FB
surface
#F6EBF7
border
#D0C6D0
text
#110712
muted
#807A81

Preview Lab

Preview with #871EA0

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

Preview Lab → · Contrast checker → · Palette generator →

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