#871780#871780

#871780 is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.3% C 0.183 H 331.1°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#871780
RGBrgb(135, 23, 128)
HSLhsl(304, 71%, 31%)
HSVhsv(304, 83%, 53%)
CMYKcmyk(0%, 83%, 5.2%, 47.1%)
CIE-LABlab(32.53, 56.08, -32.03)
CIE-LCHlch(32.53, 64.59, 330.27°)
OKLaboklab(44.28% 0.16 -0.0884)
OKLCHoklch(44.28% 0.183 331.1)
XYZxyz(14.1943, 7.3234, 21.0839)
Luminance0.0732 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871780 #17871E
analogous
#561787 #871780 #871748
triadic
#871780 #808717 #178087
tetradic
#871780 #875617 #17871E #174887
square
#871780 #875617 #17871E #174887
split-complementary
#871780 #488717 #178756
monochromatic
#1E051D #530E4E #871780 #BB20B2 #DE3BD3

Accessibility & contrast

On white

8.52
#871780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#871780 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871780
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871780#FFFFFF#000000##FFFFFF
##8717801.008.522.468.52
#FFFFFF8.521.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#064383
Deuteranopia (green-blind)
#3D527D
Tritanopia (blue-blind)
#8D284C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #871780;
/* rgb */ color: rgb(135, 23, 128);
/* oklch */ color: oklch(44.3% 0.183 331.1);
Tailwind
colors: {
  custom: {
    50: '#ae64a5',
    500: '#871780',
    950: '#000000',
  },
}
SCSS
$custom: #871780;
$custom-light: #ae64a5;
$custom-dark: #000000;
JSON
{
  "hex": "#871780",
  "rgb": {
    "r": 135,
    "g": 23,
    "b": 128
  },
  "hsl": {
    "h": 303.75,
    "s": 70.886,
    "l": 30.98
  },
  "oklch": {
    "l": 0.44277,
    "c": 0.18282,
    "h": 331.1
  },
  "luminance": 0.07322
}

Semantic roles & 50–950 ramp

primary
#871780
secondary
#3FBB47
accent
#EE453A
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #871780

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

Preview Lab → · Contrast checker → · Palette generator →

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