#871F71#871F71

#871F71 is a dark, vivid pink. Relative luminance 0.073; OKLCH L 44.0% C 0.164 H 338.1°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#871F71
RGBrgb(135, 31, 113)
HSLhsl(313, 63%, 33%)
HSVhsv(313, 77%, 53%)
CMYKcmyk(0%, 77%, 16.3%, 47.1%)
CIE-LABlab(32.53, 51.44, -22.57)
CIE-LCHlch(32.53, 56.17, 336.31°)
OKLaboklab(44.02% 0.1523 -0.0613)
OKLCHoklch(44.02% 0.164 338.1)
XYZxyz(13.4626, 7.3244, 16.3243)
Luminance0.0732 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871F71 #1F8735
analogous
#691F87 #871F71 #871F3D
triadic
#871F71 #71871F #1F7187
tetradic
#871F71 #87691F #1F8735 #1F3D87
square
#871F71 #87691F #1F8735 #1F3D87
split-complementary
#871F71 #3D871F #1F8769
monochromatic
#23081E #551447 #871F71 #B92A9B #D64BB8

Accessibility & contrast

On white

8.52
#871F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#871F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871F71
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871F71#FFFFFF#000000##FFFFFF
##871F711.008.522.468.52
#FFFFFF8.521.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244273
Deuteranopia (green-blind)
#47526F
Tritanopia (blue-blind)
#8F2546
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #871f71;
/* rgb */ color: rgb(135, 31, 113);
/* oklch */ color: oklch(44.0% 0.164 338.1);
Tailwind
colors: {
  custom: {
    50: '#ad669a',
    500: '#871f71',
    950: '#000000',
  },
}
SCSS
$custom: #871f71;
$custom-light: #ad669a;
$custom-dark: #000000;
JSON
{
  "hex": "#871f71",
  "rgb": {
    "r": 135,
    "g": 31,
    "b": 113
  },
  "hsl": {
    "h": 312.692,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.44016,
    "c": 0.16415,
    "h": 338.1
  },
  "luminance": 0.07323
}

Semantic roles & 50–950 ramp

primary
#871F71
secondary
#4AB861
accent
#E66542
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060E
muted
#807A7E

Preview Lab

Preview with #871F71

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

Preview Lab → · Contrast checker → · Palette generator →

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