#871D79#871D79

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

Color values

HEX#871D79
RGBrgb(135, 29, 121)
HSLhsl(308, 65%, 32%)
HSVhsv(308, 79%, 53%)
CMYKcmyk(0%, 78.5%, 10.4%, 47.1%)
CIE-LABlab(32.73, 53.29, -27.33)
CIE-LCHlch(32.73, 59.89, 332.85°)
OKLaboklab(44.29% 0.1549 -0.0749)
OKLCHoklch(44.29% 0.172 334.2)
XYZxyz(13.8824, 7.4113, 18.7848)
Luminance0.0741 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871D79 #1D872B
analogous
#601D87 #871D79 #871D44
triadic
#871D79 #79871D #1D7987
tetradic
#871D79 #87601D #1D872B #1D4487
square
#871D79 #87601D #1D872B #1D4487
split-complementary
#871D79 #44871D #1D8760
monochromatic
#22071F #55124C #871D79 #B928A6 #D747C4

Accessibility & contrast

On white

8.46
#871D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #871D79
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871D79#FFFFFF#000000##FFFFFF
##871D791.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B437B
Deuteranopia (green-blind)
#435277
Tritanopia (blue-blind)
#8E274A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #871d79;
/* rgb */ color: rgb(135, 29, 121);
/* oklch */ color: oklch(44.3% 0.172 334.2);
Tailwind
colors: {
  custom: {
    50: '#ad66a0',
    500: '#871d79',
    950: '#000000',
  },
}
SCSS
$custom: #871d79;
$custom-light: #ad66a0;
$custom-dark: #000000;
JSON
{
  "hex": "#871d79",
  "rgb": {
    "r": 135,
    "g": 29,
    "b": 121
  },
  "hsl": {
    "h": 307.925,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.44288,
    "c": 0.17205,
    "h": 334.2
  },
  "luminance": 0.0741
}

Semantic roles & 50–950 ramp

primary
#871D79
secondary
#46B956
accent
#E85640
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060E
muted
#807A7E

Preview Lab

Preview with #871D79

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

Preview Lab → · Contrast checker → · Palette generator →

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