#871A83#871A83

#871A83 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.7% C 0.182 H 329.8°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#871A83
RGBrgb(135, 26, 131)
HSLhsl(302, 68%, 32%)
HSVhsv(302, 81%, 53%)
CMYKcmyk(0%, 80.7%, 3%, 47.1%)
CIE-LABlab(32.98, 55.77, -33.19)
CIE-LCHlch(32.98, 64.90, 329.24°)
OKLaboklab(44.66% 0.1577 -0.0918)
OKLCHoklch(44.66% 0.182 329.8)
XYZxyz(14.4577, 7.5295, 22.1602)
Luminance0.0753 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871A83 #1A871E
analogous
#551A87 #871A83 #871A4D
triadic
#871A83 #83871A #1A8387
tetradic
#871A83 #87551A #1A871E #1A4D87
square
#871A83 #87551A #1A871E #1A4D87
split-complementary
#871A83 #4D871A #1A8755
monochromatic
#20061F #541051 #871A83 #BA24B5 #DA41D5

Accessibility & contrast

On white

8.38
#871A83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#871A83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871A83
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871A83#FFFFFF#000000##FFFFFF
##871A831.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044486
Deuteranopia (green-blind)
#3D5380
Tritanopia (blue-blind)
#8C2B4F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #871a83;
/* rgb */ color: rgb(135, 26, 131);
/* oklch */ color: oklch(44.7% 0.182 329.8);
Tailwind
colors: {
  custom: {
    50: '#ae65a7',
    500: '#871a83',
    950: '#000000',
  },
}
SCSS
$custom: #871a83;
$custom-light: #ae65a7;
$custom-dark: #000000;
JSON
{
  "hex": "#871a83",
  "rgb": {
    "r": 135,
    "g": 26,
    "b": 131
  },
  "hsl": {
    "h": 302.202,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.44655,
    "c": 0.18245,
    "h": 329.8
  },
  "luminance": 0.07528
}

Semantic roles & 50–950 ramp

primary
#871A83
secondary
#42BA47
accent
#EB443D
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #871A83

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

Preview Lab → · Contrast checker → · Palette generator →

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