#871C9F#871C9F

#871C9F is a mid, highly saturated purple. Relative luminance 0.085; OKLCH L 46.6% C 0.203 H 319.2°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#871C9F
RGBrgb(135, 28, 159)
HSLhsl(289, 70%, 37%)
HSVhsv(289, 82%, 62%)
CMYKcmyk(15.1%, 82.4%, 0%, 37.6%)
CIE-LABlab(34.97, 60.13, -47.20)
CIE-LCHlch(34.97, 76.44, 321.87°)
OKLaboklab(46.64% 0.1535 -0.1328)
OKLCHoklch(46.64% 0.203 319.2)
XYZxyz(16.6641, 8.4855, 33.5543)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871C9F #349F1C
analogous
#461C9F #871C9F #9F1C76
triadic
#871C9F #9F871C #1C9F87
tetradic
#871C9F #9F461C #349F1C #1C769F
square
#871C9F #9F461C #349F1C #1C769F
split-complementary
#871C9F #769F1C #1C9F46
monochromatic
#2F0A37 #5B136B #871C9F #B325D3 #C754E1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##871C9F#FFFFFF#000000##FFFFFF
##871C9F1.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)
#004BA2
Deuteranopia (green-blind)
#27569C
Tritanopia (blue-blind)
#873A5F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #871c9f;
/* rgb */ color: rgb(135, 28, 159);
/* oklch */ color: oklch(46.6% 0.203 319.2);
Tailwind
colors: {
  custom: {
    50: '#ae67bc',
    500: '#871c9f',
    950: '#000000',
  },
}
SCSS
$custom: #871c9f;
$custom-light: #ae67bc;
$custom-dark: #000000;
JSON
{
  "hex": "#871c9f",
  "rgb": {
    "r": 135,
    "g": 28,
    "b": 159
  },
  "hsl": {
    "h": 289.008,
    "s": 70.053,
    "l": 36.667
  },
  "oklch": {
    "l": 0.46638,
    "c": 0.20298,
    "h": 319.2
  },
  "luminance": 0.08485
}

Semantic roles & 50–950 ramp

primary
#871C9F
secondary
#67C453
accent
#ED3B5C
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110712
muted
#807A81

Preview Lab

Preview with #871C9F

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

Preview Lab → · Contrast checker → · Palette generator →

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