#871F78#871F78

#871F78 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.4% C 0.169 H 334.7°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#871F78
RGBrgb(135, 31, 120)
HSLhsl(309, 63%, 33%)
HSVhsv(309, 77%, 53%)
CMYKcmyk(0%, 77%, 11.1%, 47.1%)
CIE-LABlab(32.89, 52.50, -26.43)
CIE-LCHlch(32.89, 58.78, 333.28°)
OKLaboklab(44.39% 0.153 -0.0723)
OKLCHoklch(44.39% 0.169 334.7)
XYZxyz(13.8720, 7.4882, 18.4804)
Luminance0.0749 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871F78 #1F872E
analogous
#621F87 #871F78 #871F44
triadic
#871F78 #78871F #1F7887
tetradic
#871F78 #87621F #1F872E #1F4487
square
#871F78 #87621F #1F872E #1F4487
split-complementary
#871F78 #44871F #1F8762
monochromatic
#230820 #55144C #871F78 #B92AA4 #D64BC2

Accessibility & contrast

On white

8.41
#871F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#871F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871F78
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871F78#FFFFFF#000000##FFFFFF
##871F781.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #871f78;
/* rgb */ color: rgb(135, 31, 120);
/* oklch */ color: oklch(44.4% 0.169 334.7);
Tailwind
colors: {
  custom: {
    50: '#ad679f',
    500: '#871f78',
    950: '#000000',
  },
}
SCSS
$custom: #871f78;
$custom-light: #ad679f;
$custom-dark: #000000;
JSON
{
  "hex": "#871f78",
  "rgb": {
    "r": 135,
    "g": 31,
    "b": 120
  },
  "hsl": {
    "h": 308.654,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.44392,
    "c": 0.1692,
    "h": 334.7
  },
  "luminance": 0.07487
}

Semantic roles & 50–950 ramp

primary
#871F78
secondary
#4AB85A
accent
#E65A42
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #871F78

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

Preview Lab → · Contrast checker → · Palette generator →

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