#871782#871782

#871782 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.4% C 0.184 H 330.2°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#871782
RGBrgb(135, 23, 130)
HSLhsl(303, 71%, 31%)
HSVhsv(303, 83%, 53%)
CMYKcmyk(0%, 83%, 3.7%, 47.1%)
CIE-LABlab(32.65, 56.40, -33.10)
CIE-LCHlch(32.65, 65.40, 329.60°)
OKLaboklab(44.4% 0.16 -0.0915)
OKLCHoklch(44.4% 0.184 330.2)
XYZxyz(14.3273, 7.3766, 21.7840)
Luminance0.0737 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871782 #17871C
analogous
#541787 #871782 #87174A
triadic
#871782 #828717 #178287
tetradic
#871782 #875417 #17871C #174A87
square
#871782 #875417 #17871C #174A87
split-complementary
#871782 #4A8717 #178754
monochromatic
#1E051D #530E50 #871782 #BB20B4 #DE3BD6

Accessibility & contrast

On white

8.48
#871782 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#871782 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871782
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871782#FFFFFF#000000##FFFFFF
##8717821.008.482.478.48
#FFFFFF8.481.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#014385
Deuteranopia (green-blind)
#3C527F
Tritanopia (blue-blind)
#8C294D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #871782;
/* rgb */ color: rgb(135, 23, 130);
/* oklch */ color: oklch(44.4% 0.184 330.2);
Tailwind
colors: {
  custom: {
    50: '#ae64a7',
    500: '#871782',
    950: '#000000',
  },
}
SCSS
$custom: #871782;
$custom-light: #ae64a7;
$custom-dark: #000000;
JSON
{
  "hex": "#871782",
  "rgb": {
    "r": 135,
    "g": 23,
    "b": 130
  },
  "hsl": {
    "h": 302.679,
    "s": 70.886,
    "l": 30.98
  },
  "oklch": {
    "l": 0.44398,
    "c": 0.18431,
    "h": 330.2
  },
  "luminance": 0.07375
}

Semantic roles & 50–950 ramp

primary
#871782
secondary
#3FBB44
accent
#EE423A
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #871782

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

Preview Lab → · Contrast checker → · Palette generator →

#871782 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva