#871F8F#871F8F

#871F8F is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.8% C 0.187 H 324.9°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#871F8F
RGBrgb(135, 31, 143)
HSLhsl(296, 64%, 34%)
HSVhsv(296, 78%, 56%)
CMYKcmyk(5.6%, 78.3%, 0%, 43.9%)
CIE-LABlab(34.22, 56.34, -38.65)
CIE-LCHlch(34.22, 68.32, 325.55°)
OKLaboklab(45.77% 0.153 -0.1077)
OKLCHoklch(45.77% 0.187 324.9)
XYZxyz(15.4392, 8.1151, 26.7344)
Luminance0.0811 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871F8F #278F1F
analogous
#4F1F8F #871F8F #8F1F5F
triadic
#871F8F #8F871F #1F8F87
tetradic
#871F8F #8F4F1F #278F1F #1F5F8F
square
#871F8F #8F4F1F #278F1F #1F5F8F
split-complementary
#871F8F #5F8F1F #1F8F4F
monochromatic
#28092A #58145D #871F8F #B62AC1 #CF4FD9

Accessibility & contrast

On white

8.01
#871F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#871F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871F8F
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871F8F#FFFFFF#000000##FFFFFF
##871F8F1.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004992
Deuteranopia (green-blind)
#37558C
Tritanopia (blue-blind)
#8A3456
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #871f8f;
/* rgb */ color: rgb(135, 31, 143);
/* oklch */ color: oklch(45.8% 0.187 324.9);
Tailwind
colors: {
  custom: {
    50: '#ae68b0',
    500: '#871f8f',
    950: '#000000',
  },
}
SCSS
$custom: #871f8f;
$custom-light: #ae68b0;
$custom-dark: #000000;
JSON
{
  "hex": "#871f8f",
  "rgb": {
    "r": 135,
    "g": 31,
    "b": 143
  },
  "hsl": {
    "h": 295.714,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.45769,
    "c": 0.18714,
    "h": 324.9
  },
  "luminance": 0.08114
}

Semantic roles & 50–950 ramp

primary
#871F8F
secondary
#56BC4E
accent
#E7404C
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #871F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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