#871F88#871F88

#871F88 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.3% C 0.182 H 327.6°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#871F88
RGBrgb(135, 31, 136)
HSLhsl(299, 63%, 33%)
HSVhsv(299, 77%, 53%)
CMYKcmyk(0.7%, 77.2%, 0%, 46.7%)
CIE-LABlab(33.79, 55.12, -35.01)
CIE-LCHlch(33.79, 65.30, 327.58°)
OKLaboklab(45.33% 0.1533 -0.0971)
OKLCHoklch(45.33% 0.182 327.6)
XYZxyz(14.9254, 7.9095, 24.0284)
Luminance0.0791 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871F88 #20881F
analogous
#531F88 #871F88 #881F54
triadic
#871F88 #88871F #1F8887
tetradic
#871F88 #88531F #20881F #1F5488
square
#871F88 #88531F #20881F #1F5488
split-complementary
#871F88 #54881F #1F8853
monochromatic
#240824 #561456 #871F88 #B82ABA #D54BD6

Accessibility & contrast

On white

8.13
#871F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#871F88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871F88
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871F88#FFFFFF#000000##FFFFFF
##871F881.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03478B
Deuteranopia (green-blind)
#3C5485
Tritanopia (blue-blind)
#8B3053
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #871f88;
/* rgb */ color: rgb(135, 31, 136);
/* oklch */ color: oklch(45.3% 0.182 327.6);
Tailwind
colors: {
  custom: {
    50: '#ad67ab',
    500: '#871f88',
    950: '#000000',
  },
}
SCSS
$custom: #871f88;
$custom-light: #ad67ab;
$custom-dark: #000000;
JSON
{
  "hex": "#871f88",
  "rgb": {
    "r": 135,
    "g": 31,
    "b": 136
  },
  "hsl": {
    "h": 299.429,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.45327,
    "c": 0.18151,
    "h": 327.6
  },
  "luminance": 0.07908
}

Semantic roles & 50–950 ramp

primary
#871F88
secondary
#4BB94A
accent
#E64243
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #871F88

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

Preview Lab → · Contrast checker → · Palette generator →

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