#871C97#871C97

#871C97 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 46.1% C 0.196 H 321.9°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#871C97
RGBrgb(135, 28, 151)
HSLhsl(292, 69%, 35%)
HSVhsv(292, 81%, 59%)
CMYKcmyk(10.6%, 81.5%, 0%, 40.8%)
CIE-LABlab(34.43, 58.66, -43.22)
CIE-LCHlch(34.43, 72.86, 323.62°)
OKLaboklab(46.08% 0.1547 -0.1211)
OKLCHoklch(46.08% 0.196 321.9)
XYZxyz(15.9922, 8.2167, 30.0158)
Luminance0.0822 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871C97 #2C971C
analogous
#491C97 #871C97 #971C6A
triadic
#871C97 #97871C #1C9787
tetradic
#871C97 #97491C #2C971C #1C6A97
square
#871C97 #97491C #2C971C #1C6A97
split-complementary
#871C97 #6A971C #1C9749
monochromatic
#2B0930 #591263 #871C97 #B526CB #CC4FDE

Accessibility & contrast

On white

7.94
#871C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#871C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871C97
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871C97#FFFFFF#000000##FFFFFF
##871C971.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9A
Deuteranopia (green-blind)
#2F5594
Tritanopia (blue-blind)
#88365A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #871c97;
/* rgb */ color: rgb(135, 28, 151);
/* oklch */ color: oklch(46.1% 0.196 321.9);
Tailwind
colors: {
  custom: {
    50: '#ae67b6',
    500: '#871c97',
    950: '#000000',
  },
}
SCSS
$custom: #871c97;
$custom-light: #ae67b6;
$custom-dark: #000000;
JSON
{
  "hex": "#871c97",
  "rgb": {
    "r": 135,
    "g": 28,
    "b": 151
  },
  "hsl": {
    "h": 292.195,
    "s": 68.715,
    "l": 35.098
  },
  "oklch": {
    "l": 0.46082,
    "c": 0.19643,
    "h": 321.9
  },
  "luminance": 0.08216
}

Semantic roles & 50–950 ramp

primary
#871C97
secondary
#5DC14E
accent
#EC3C53
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110711
muted
#807A80

Preview Lab

Preview with #871C97

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

Preview Lab → · Contrast checker → · Palette generator →

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