#871F82#871F82

#871F82 is a dark, vivid purple. Relative luminance 0.077; OKLCH L 45.0% C 0.177 H 330.2°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#871F82
RGBrgb(135, 31, 130)
HSLhsl(303, 63%, 33%)
HSVhsv(303, 77%, 53%)
CMYKcmyk(0%, 77%, 3.7%, 47.1%)
CIE-LABlab(33.44, 54.11, -31.84)
CIE-LCHlch(33.44, 62.78, 329.53°)
OKLaboklab(44.96% 0.1534 -0.0879)
OKLCHoklch(44.96% 0.177 330.2)
XYZxyz(14.5109, 7.7437, 21.8452)
Luminance0.0774 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871F82 #1F8724
analogous
#581F87 #871F82 #871F4E
triadic
#871F82 #82871F #1F8287
tetradic
#871F82 #87581F #1F8724 #1F4E87
square
#871F82 #87581F #1F8724 #1F4E87
split-complementary
#871F82 #4E871F #1F8758
monochromatic
#230822 #551452 #871F82 #B92AB2 #D64BCF

Accessibility & contrast

On white

8.24
#871F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#871F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871F82
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871F82#FFFFFF#000000##FFFFFF
##871F821.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114685
Deuteranopia (green-blind)
#3F547F
Tritanopia (blue-blind)
#8C2D4F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #871f82;
/* rgb */ color: rgb(135, 31, 130);
/* oklch */ color: oklch(45.0% 0.177 330.2);
Tailwind
colors: {
  custom: {
    50: '#ad67a7',
    500: '#871f82',
    950: '#000000',
  },
}
SCSS
$custom: #871f82;
$custom-light: #ad67a7;
$custom-dark: #000000;
JSON
{
  "hex": "#871f82",
  "rgb": {
    "r": 135,
    "g": 31,
    "b": 130
  },
  "hsl": {
    "h": 302.885,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.44964,
    "c": 0.1768,
    "h": 330.2
  },
  "luminance": 0.07743
}

Semantic roles & 50–950 ramp

primary
#871F82
secondary
#4AB84F
accent
#E64A42
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #871F82

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

Preview Lab → · Contrast checker → · Palette generator →

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