#871E9C#871E9C

#871E9C is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.6% C 0.199 H 320.1°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#871E9C
RGBrgb(135, 30, 156)
HSLhsl(290, 68%, 36%)
HSVhsv(290, 81%, 61%)
CMYKcmyk(13.5%, 80.8%, 0%, 38.8%)
CIE-LABlab(34.96, 59.00, -45.40)
CIE-LCHlch(34.96, 74.45, 322.42°)
OKLaboklab(46.57% 0.1525 -0.1275)
OKLCHoklch(46.57% 0.199 320.1)
XYZxyz(16.4560, 8.4806, 32.2162)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871E9C #339C1E
analogous
#481E9C #871E9C #9C1E72
triadic
#871E9C #9C871E #1E9C87
tetradic
#871E9C #9C481E #339C1E #1E729C
square
#871E9C #9C481E #339C1E #1E729C
split-complementary
#871E9C #729C1E #1E9C48
monochromatic
#2E0A35 #5B1469 #871E9C #B328CF #C856DE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##871E9C#FFFFFF#000000##FFFFFF
##871E9C1.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9F
Deuteranopia (green-blind)
#2B5699
Tritanopia (blue-blind)
#873A5E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #871e9c;
/* rgb */ color: rgb(135, 30, 156);
/* oklch */ color: oklch(46.6% 0.199 320.1);
Tailwind
colors: {
  custom: {
    50: '#ae68ba',
    500: '#871e9c',
    950: '#000000',
  },
}
SCSS
$custom: #871e9c;
$custom-light: #ae68ba;
$custom-dark: #000000;
JSON
{
  "hex": "#871e9c",
  "rgb": {
    "r": 135,
    "g": 30,
    "b": 156
  },
  "hsl": {
    "h": 290,
    "s": 67.742,
    "l": 36.471
  },
  "oklch": {
    "l": 0.46566,
    "c": 0.19876,
    "h": 320.1
  },
  "luminance": 0.0848
}

Semantic roles & 50–950 ramp

primary
#871E9C
secondary
#66C254
accent
#EB3D5A
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110712
muted
#807A81

Preview Lab

Preview with #871E9C

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

Preview Lab → · Contrast checker → · Palette generator →

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