#871D78#871D78

#871D78 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.2% C 0.171 H 334.7°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#871D78
RGBrgb(135, 29, 120)
HSLhsl(308, 65%, 32%)
HSVhsv(308, 79%, 53%)
CMYKcmyk(0%, 78.5%, 11.1%, 47.1%)
CIE-LABlab(32.67, 53.14, -26.78)
CIE-LCHlch(32.67, 59.51, 333.25°)
OKLaboklab(44.23% 0.1548 -0.0733)
OKLCHoklch(44.23% 0.171 334.7)
XYZxyz(13.8214, 7.3869, 18.4636)
Luminance0.0739 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871D78 #1D872C
analogous
#611D87 #871D78 #871D43
triadic
#871D78 #78871D #1D7887
tetradic
#871D78 #87611D #1D872C #1D4387
square
#871D78 #87611D #1D872C #1D4387
split-complementary
#871D78 #43871D #1D8761
monochromatic
#22071E #55124B #871D78 #B928A5 #D747C3

Accessibility & contrast

On white

8.48
#871D78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#871D78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##871D78#FFFFFF#000000##FFFFFF
##871D781.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C437A
Deuteranopia (green-blind)
#435276
Tritanopia (blue-blind)
#8E2749
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #871d78;
/* rgb */ color: rgb(135, 29, 120);
/* oklch */ color: oklch(44.2% 0.171 334.7);
Tailwind
colors: {
  custom: {
    50: '#ad669f',
    500: '#871d78',
    950: '#000000',
  },
}
SCSS
$custom: #871d78;
$custom-light: #ad669f;
$custom-dark: #000000;
JSON
{
  "hex": "#871d78",
  "rgb": {
    "r": 135,
    "g": 29,
    "b": 120
  },
  "hsl": {
    "h": 308.491,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.44233,
    "c": 0.17132,
    "h": 334.7
  },
  "luminance": 0.07386
}

Semantic roles & 50–950 ramp

primary
#871D78
secondary
#46B957
accent
#E85840
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060E
muted
#807A7E

Preview Lab

Preview with #871D78

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

Preview Lab → · Contrast checker → · Palette generator →

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