#871F9B#871F9B

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

Color values

HEX#871F9B
RGBrgb(135, 31, 155)
HSLhsl(290, 67%, 36%)
HSVhsv(290, 80%, 61%)
CMYKcmyk(12.9%, 80%, 0%, 39.2%)
CIE-LABlab(35.00, 58.52, -44.74)
CIE-LCHlch(35.00, 73.66, 322.60°)
OKLaboklab(46.57% 0.1518 -0.1255)
OKLCHoklch(46.57% 0.197 320.4)
XYZxyz(16.3973, 8.4983, 31.7806)
Luminance0.0850 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871F9B #339B1F
analogous
#491F9B #871F9B #9B1F71
triadic
#871F9B #9B871F #1F9B87
tetradic
#871F9B #9B491F #339B1F #1F719B
square
#871F9B #9B491F #339B1F #1F719B
split-complementary
#871F9B #719B1F #1F9B49
monochromatic
#2E0B35 #5B1568 #871F9B #B329CE #C857DD

Accessibility & contrast

On white

7.78
#871F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #871F9B
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871F9B#FFFFFF#000000##FFFFFF
##871F9B1.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9E
Deuteranopia (green-blind)
#2D5698
Tritanopia (blue-blind)
#883A5D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #871f9b;
/* rgb */ color: rgb(135, 31, 155);
/* oklch */ color: oklch(46.6% 0.197 320.4);
Tailwind
colors: {
  custom: {
    50: '#ae68b9',
    500: '#871f9b',
    950: '#000000',
  },
}
SCSS
$custom: #871f9b;
$custom-light: #ae68b9;
$custom-dark: #000000;
JSON
{
  "hex": "#871f9b",
  "rgb": {
    "r": 135,
    "g": 31,
    "b": 155
  },
  "hsl": {
    "h": 290.323,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.46569,
    "c": 0.19702,
    "h": 320.4
  },
  "luminance": 0.08497
}

Semantic roles & 50–950 ramp

primary
#871F9B
secondary
#66C155
accent
#EA3E5A
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110711
muted
#807A80

Preview Lab

Preview with #871F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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