#871A6C#871A6C

#871A6C is a dark, vivid pink. Relative luminance 0.070; OKLCH L 43.4% C 0.166 H 340.4°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#871A6C
RGBrgb(135, 26, 108)
HSLhsl(315, 68%, 32%)
HSVhsv(315, 81%, 53%)
CMYKcmyk(0%, 80.7%, 20%, 47.1%)
CIE-LABlab(31.75, 52.26, -20.61)
CIE-LCHlch(31.75, 56.18, 338.48°)
OKLaboklab(43.37% 0.1564 -0.0556)
OKLCHoklch(43.37% 0.166 340.4)
XYZxyz(13.0682, 6.9737, 14.8423)
Luminance0.0697 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871A6C #1A8735
analogous
#6C1A87 #871A6C #871A36
triadic
#871A6C #6C871A #1A6C87
tetradic
#871A6C #876C1A #1A8735 #1A3687
square
#871A6C #876C1A #1A8735 #1A3687
split-complementary
#871A6C #36871A #1A876C
monochromatic
#20061A #541043 #871A6C #BA2495 #DA41B4

Accessibility & contrast

On white

8.77
#871A6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#871A6C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871A6C
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871A6C#FFFFFF#000000##FFFFFF
##871A6C1.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23406E
Deuteranopia (green-blind)
#47516A
Tritanopia (blue-blind)
#8F1E42
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #871a6c;
/* rgb */ color: rgb(135, 26, 108);
/* oklch */ color: oklch(43.4% 0.166 340.4);
Tailwind
colors: {
  custom: {
    50: '#ae6496',
    500: '#871a6c',
    950: '#000000',
  },
}
SCSS
$custom: #871a6c;
$custom-light: #ae6496;
$custom-dark: #000000;
JSON
{
  "hex": "#871a6c",
  "rgb": {
    "r": 135,
    "g": 26,
    "b": 108
  },
  "hsl": {
    "h": 314.862,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.43368,
    "c": 0.16596,
    "h": 340.4
  },
  "luminance": 0.06972
}

Semantic roles & 50–950 ramp

primary
#871A6C
secondary
#42BA60
accent
#EB683D
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060D
muted
#807A7E

Preview Lab

Preview with #871A6C

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

Preview Lab → · Contrast checker → · Palette generator →

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