#871A6B#871A6B

#871A6B is a dark, vivid pink. Relative luminance 0.070; OKLCH L 43.3% C 0.165 H 340.9°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#871A6B
RGBrgb(135, 26, 107)
HSLhsl(315, 68%, 32%)
HSVhsv(315, 81%, 53%)
CMYKcmyk(0%, 80.7%, 20.7%, 47.1%)
CIE-LABlab(31.70, 52.12, -20.04)
CIE-LCHlch(31.70, 55.84, 338.96°)
OKLaboklab(43.32% 0.1562 -0.054)
OKLCHoklch(43.32% 0.165 340.9)
XYZxyz(13.0153, 6.9526, 14.5636)
Luminance0.0695 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871A6B #1A8736
analogous
#6D1A87 #871A6B #871A35
triadic
#871A6B #6B871A #1A6B87
tetradic
#871A6B #876D1A #1A8736 #1A3587
square
#871A6B #876D1A #1A8736 #1A3587
split-complementary
#871A6B #35871A #1A876D
monochromatic
#20061A #541042 #871A6B #BA2494 #DA41B3

Accessibility & contrast

On white

8.79
#871A6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #871A6B
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871A6B#FFFFFF#000000##FFFFFF
##871A6B1.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#243F6D
Deuteranopia (green-blind)
#485169
Tritanopia (blue-blind)
#901D41
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #871a6b;
/* rgb */ color: rgb(135, 26, 107);
/* oklch */ color: oklch(43.3% 0.165 340.9);
Tailwind
colors: {
  custom: {
    50: '#ae6495',
    500: '#871a6b',
    950: '#000000',
  },
}
SCSS
$custom: #871a6b;
$custom-light: #ae6495;
$custom-dark: #000000;
JSON
{
  "hex": "#871a6b",
  "rgb": {
    "r": 135,
    "g": 26,
    "b": 107
  },
  "hsl": {
    "h": 315.413,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.43318,
    "c": 0.16529,
    "h": 340.9
  },
  "luminance": 0.06951
}

Semantic roles & 50–950 ramp

primary
#871A6B
secondary
#42BA61
accent
#EB6A3D
background
#FBF6F9
surface
#F6EBF1
border
#D0C6CB
text
#11060D
muted
#807A7E

Preview Lab

Preview with #871A6B

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

Preview Lab → · Contrast checker → · Palette generator →

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