#871E9B#871E9B

#871E9B is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.5% C 0.198 H 320.5°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#871E9B
RGBrgb(135, 30, 155)
HSLhsl(290, 68%, 36%)
HSVhsv(290, 81%, 61%)
CMYKcmyk(12.9%, 80.6%, 0%, 39.2%)
CIE-LABlab(34.90, 58.82, -44.90)
CIE-LCHlch(34.90, 74.00, 322.64°)
OKLaboklab(46.5% 0.1526 -0.126)
OKLCHoklch(46.5% 0.198 320.5)
XYZxyz(16.3716, 8.4469, 31.7721)
Luminance0.0845 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871E9B #329B1E
analogous
#491E9B #871E9B #9B1E71
triadic
#871E9B #9B871E #1E9B87
tetradic
#871E9B #9B491E #329B1E #1E719B
square
#871E9B #9B491E #329B1E #1E719B
split-complementary
#871E9B #719B1E #1E9B49
monochromatic
#2E0A34 #5A1468 #871E9B #B428CE #C855DE

Accessibility & contrast

On white

7.81
#871E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #871E9B
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871E9B#FFFFFF#000000##FFFFFF
##871E9B1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9E
Deuteranopia (green-blind)
#2C5698
Tritanopia (blue-blind)
#88395D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #871e9b;
/* rgb */ color: rgb(135, 30, 155);
/* oklch */ color: oklch(46.5% 0.198 320.5);
Tailwind
colors: {
  custom: {
    50: '#ae68b9',
    500: '#871e9b',
    950: '#000000',
  },
}
SCSS
$custom: #871e9b;
$custom-light: #ae68b9;
$custom-dark: #000000;
JSON
{
  "hex": "#871e9b",
  "rgb": {
    "r": 135,
    "g": 30,
    "b": 155
  },
  "hsl": {
    "h": 290.4,
    "s": 67.568,
    "l": 36.275
  },
  "oklch": {
    "l": 0.46496,
    "c": 0.19793,
    "h": 320.5
  },
  "luminance": 0.08446
}

Semantic roles & 50–950 ramp

primary
#871E9B
secondary
#65C253
accent
#EA3D59
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110711
muted
#807A80

Preview Lab

Preview with #871E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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