#871E78#871E78

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

Color values

HEX#871E78
RGBrgb(135, 30, 120)
HSLhsl(309, 64%, 32%)
HSVhsv(309, 78%, 53%)
CMYKcmyk(0%, 77.8%, 11.1%, 47.1%)
CIE-LABlab(32.78, 52.83, -26.61)
CIE-LCHlch(32.78, 59.15, 333.26°)
OKLaboklab(44.31% 0.1539 -0.0728)
OKLCHoklch(44.31% 0.17 334.7)
XYZxyz(13.8463, 7.4367, 18.4719)
Luminance0.0744 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871E78 #1E872D
analogous
#611E87 #871E78 #871E44
triadic
#871E78 #78871E #1E7887
tetradic
#871E78 #87611E #1E872D #1E4487
square
#871E78 #87611E #1E872D #1E4487
split-complementary
#871E78 #44871E #1E8761
monochromatic
#23081F #55134B #871E78 #B929A5 #D749C2

Accessibility & contrast

On white

8.44
#871E78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#871E78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871E78
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871E78#FFFFFF#000000##FFFFFF
##871E781.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D437A
Deuteranopia (green-blind)
#445376
Tritanopia (blue-blind)
#8E2849
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #871e78;
/* rgb */ color: rgb(135, 30, 120);
/* oklch */ color: oklch(44.3% 0.170 334.7);
Tailwind
colors: {
  custom: {
    50: '#ad669f',
    500: '#871e78',
    950: '#000000',
  },
}
SCSS
$custom: #871e78;
$custom-light: #ad669f;
$custom-dark: #000000;
JSON
{
  "hex": "#871e78",
  "rgb": {
    "r": 135,
    "g": 30,
    "b": 120
  },
  "hsl": {
    "h": 308.571,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.44311,
    "c": 0.17028,
    "h": 334.7
  },
  "luminance": 0.07436
}

Semantic roles & 50–950 ramp

primary
#871E78
secondary
#48B958
accent
#E75941
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060E
muted
#807A7E

Preview Lab

Preview with #871E78

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

Preview Lab → · Contrast checker → · Palette generator →

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