#871F9C#871F9C

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

Color values

HEX#871F9C
RGBrgb(135, 31, 156)
HSLhsl(290, 67%, 37%)
HSVhsv(290, 80%, 61%)
CMYKcmyk(13.5%, 80.1%, 0%, 38.8%)
CIE-LABlab(35.07, 58.70, -45.24)
CIE-LCHlch(35.07, 74.11, 322.38°)
OKLaboklab(46.64% 0.1517 -0.127)
OKLCHoklch(46.64% 0.198 320.1)
XYZxyz(16.4817, 8.5320, 32.2247)
Luminance0.0853 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871F9C #349C1F
analogous
#491F9C #871F9C #9C1F73
triadic
#871F9C #9C871F #1F9C87
tetradic
#871F9C #9C491F #349C1F #1F739C
square
#871F9C #9C491F #349C1F #1F739C
split-complementary
#871F9C #739C1F #1F9C49
monochromatic
#2F0B36 #5B1569 #871F9C #B329CF #C758DE

Accessibility & contrast

On white

7.76
#871F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#871F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871F9C
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871F9C#FFFFFF#000000##FFFFFF
##871F9C1.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #871f9c;
/* rgb */ color: rgb(135, 31, 156);
/* oklch */ color: oklch(46.6% 0.198 320.1);
Tailwind
colors: {
  custom: {
    50: '#ae68ba',
    500: '#871f9c',
    950: '#000000',
  },
}
SCSS
$custom: #871f9c;
$custom-light: #ae68ba;
$custom-dark: #000000;
JSON
{
  "hex": "#871f9c",
  "rgb": {
    "r": 135,
    "g": 31,
    "b": 156
  },
  "hsl": {
    "h": 289.92,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.46638,
    "c": 0.19786,
    "h": 320.1
  },
  "luminance": 0.08531
}

Semantic roles & 50–950 ramp

primary
#871F9C
secondary
#67C155
accent
#EA3E5B
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110712
muted
#807A81

Preview Lab

Preview with #871F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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