#871D9A#871D9A

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

Color values

HEX#871D9A
RGBrgb(135, 29, 154)
HSLhsl(291, 68%, 36%)
HSVhsv(291, 81%, 60%)
CMYKcmyk(12.3%, 81.2%, 0%, 39.6%)
CIE-LABlab(34.73, 58.92, -44.56)
CIE-LCHlch(34.73, 73.88, 322.90°)
OKLaboklab(46.36% 0.1535 -0.125)
OKLCHoklch(46.36% 0.198 320.8)
XYZxyz(16.2631, 8.3636, 31.3233)
Luminance0.0836 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871D9A #309A1D
analogous
#481D9A #871D9A #9A1D6E
triadic
#871D9A #9A871D #1D9A87
tetradic
#871D9A #9A481D #309A1D #1D6E9A
square
#871D9A #9A481D #309A1D #1D6E9A
split-complementary
#871D9A #6E9A1D #1D9A48
monochromatic
#2D0A33 #5A1366 #871D9A #B427CE #C953DF

Accessibility & contrast

On white

7.86
#871D9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#871D9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871D9A
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871D9A#FFFFFF#000000##FFFFFF
##871D9A1.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9D
Deuteranopia (green-blind)
#2D5597
Tritanopia (blue-blind)
#88385C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #871d9a;
/* rgb */ color: rgb(135, 29, 154);
/* oklch */ color: oklch(46.4% 0.198 320.8);
Tailwind
colors: {
  custom: {
    50: '#ae67b8',
    500: '#871d9a',
    950: '#000000',
  },
}
SCSS
$custom: #871d9a;
$custom-light: #ae67b8;
$custom-dark: #000000;
JSON
{
  "hex": "#871d9a",
  "rgb": {
    "r": 135,
    "g": 29,
    "b": 154
  },
  "hsl": {
    "h": 290.88,
    "s": 68.306,
    "l": 35.882
  },
  "oklch": {
    "l": 0.46357,
    "c": 0.19801,
    "h": 320.8
  },
  "luminance": 0.08363
}

Semantic roles & 50–950 ramp

primary
#871D9A
secondary
#62C251
accent
#EB3D57
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110711
muted
#807A80

Preview Lab

Preview with #871D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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