#871F76#871F76

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

Color values

HEX#871F76
RGBrgb(135, 31, 118)
HSLhsl(310, 63%, 33%)
HSVhsv(310, 77%, 53%)
CMYKcmyk(0%, 77%, 12.6%, 47.1%)
CIE-LABlab(32.79, 52.19, -25.34)
CIE-LCHlch(32.79, 58.02, 334.11°)
OKLaboklab(44.28% 0.1528 -0.0692)
OKLCHoklch(44.28% 0.168 335.6)
XYZxyz(13.7519, 7.4401, 17.8479)
Luminance0.0744 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871F76 #1F8730
analogous
#641F87 #871F76 #871F42
triadic
#871F76 #76871F #1F7687
tetradic
#871F76 #87641F #1F8730 #1F4287
square
#871F76 #87641F #1F8730 #1F4287
split-complementary
#871F76 #42871F #1F8764
monochromatic
#23081F #55144A #871F76 #B92AA2 #D64BBF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##871F76#FFFFFF#000000##FFFFFF
##871F761.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)
#204378
Deuteranopia (green-blind)
#455374
Tritanopia (blue-blind)
#8E2748
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #871f76;
/* rgb */ color: rgb(135, 31, 118);
/* oklch */ color: oklch(44.3% 0.168 335.6);
Tailwind
colors: {
  custom: {
    50: '#ad679e',
    500: '#871f76',
    950: '#000000',
  },
}
SCSS
$custom: #871f76;
$custom-light: #ad679e;
$custom-dark: #000000;
JSON
{
  "hex": "#871f76",
  "rgb": {
    "r": 135,
    "g": 31,
    "b": 118
  },
  "hsl": {
    "h": 309.808,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.44282,
    "c": 0.16774,
    "h": 335.6
  },
  "luminance": 0.07439
}

Semantic roles & 50–950 ramp

primary
#871F76
secondary
#4AB85C
accent
#E65D42
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #871F76

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

Preview Lab → · Contrast checker → · Palette generator →

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