#871F85#871F85

#871F85 is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.1% C 0.179 H 328.9°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#871F85
RGBrgb(135, 31, 133)
HSLhsl(301, 63%, 33%)
HSVhsv(301, 77%, 53%)
CMYKcmyk(0%, 77%, 1.5%, 47.1%)
CIE-LABlab(33.62, 54.62, -33.43)
CIE-LCHlch(33.62, 64.03, 328.53°)
OKLaboklab(45.14% 0.1534 -0.0925)
OKLCHoklch(45.14% 0.179 328.9)
XYZxyz(14.7152, 7.8254, 22.9212)
Luminance0.0782 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871F85 #1F8721
analogous
#551F87 #871F85 #871F51
triadic
#871F85 #85871F #1F8587
tetradic
#871F85 #87551F #1F8721 #1F5187
square
#871F85 #87551F #1F8721 #1F5187
split-complementary
#871F85 #51871F #1F8755
monochromatic
#230823 #551454 #871F85 #B92AB6 #D64BD3

Accessibility & contrast

On white

8.19
#871F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#871F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871F85
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871F85#FFFFFF#000000##FFFFFF
##871F851.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4688
Deuteranopia (green-blind)
#3D5482
Tritanopia (blue-blind)
#8C2F51
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #871f85;
/* rgb */ color: rgb(135, 31, 133);
/* oklch */ color: oklch(45.1% 0.179 328.9);
Tailwind
colors: {
  custom: {
    50: '#ad67a9',
    500: '#871f85',
    950: '#000000',
  },
}
SCSS
$custom: #871f85;
$custom-light: #ad67a9;
$custom-dark: #000000;
JSON
{
  "hex": "#871f85",
  "rgb": {
    "r": 135,
    "g": 31,
    "b": 133
  },
  "hsl": {
    "h": 301.154,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.45144,
    "c": 0.17914,
    "h": 328.9
  },
  "luminance": 0.07824
}

Semantic roles & 50–950 ramp

primary
#871F85
secondary
#4AB84C
accent
#E64542
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #871F85

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

Preview Lab → · Contrast checker → · Palette generator →

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