#871E9E#871E9E

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

Color values

HEX#871E9E
RGBrgb(135, 30, 158)
HSLhsl(289, 68%, 37%)
HSVhsv(289, 81%, 62%)
CMYKcmyk(14.6%, 81%, 0%, 38%)
CIE-LABlab(35.10, 59.37, -46.39)
CIE-LCHlch(35.10, 75.35, 322.00°)
OKLaboklab(46.71% 0.1522 -0.1304)
OKLCHoklch(46.71% 0.2 319.4)
XYZxyz(16.6267, 8.5489, 33.1154)
Luminance0.0855 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871E9E #359E1E
analogous
#471E9E #871E9E #9E1E75
triadic
#871E9E #9E871E #1E9E87
tetradic
#871E9E #9E471E #359E1E #1E759E
square
#871E9E #9E471E #359E1E #1E759E
split-complementary
#871E9E #759E1E #1E9E47
monochromatic
#2F0A37 #5B146B #871E9E #B328D1 #C757DF

Accessibility & contrast

On white

7.75
#871E9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#871E9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871E9E
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871E9E#FFFFFF#000000##FFFFFF
##871E9E1.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA1
Deuteranopia (green-blind)
#29569B
Tritanopia (blue-blind)
#873B5F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #871e9e;
/* rgb */ color: rgb(135, 30, 158);
/* oklch */ color: oklch(46.7% 0.200 319.4);
Tailwind
colors: {
  custom: {
    50: '#ae68bb',
    500: '#871e9e',
    950: '#000000',
  },
}
SCSS
$custom: #871e9e;
$custom-light: #ae68bb;
$custom-dark: #000000;
JSON
{
  "hex": "#871e9e",
  "rgb": {
    "r": 135,
    "g": 30,
    "b": 158
  },
  "hsl": {
    "h": 289.219,
    "s": 68.085,
    "l": 36.863
  },
  "oklch": {
    "l": 0.46705,
    "c": 0.20042,
    "h": 319.4
  },
  "luminance": 0.08548
}

Semantic roles & 50–950 ramp

primary
#871E9E
secondary
#69C355
accent
#EB3D5C
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110712
muted
#807A81

Preview Lab

Preview with #871E9E

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

Preview Lab → · Contrast checker → · Palette generator →

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