#871A5A#871A5A

#871A5A is a dark, vivid pink. Relative luminance 0.066; OKLCH L 42.5% C 0.155 H 350.1°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#871A5A
RGBrgb(135, 26, 90)
HSLhsl(325, 68%, 32%)
HSVhsv(325, 81%, 53%)
CMYKcmyk(0%, 80.7%, 33.3%, 47.1%)
CIE-LABlab(30.95, 49.91, -10.21)
CIE-LCHlch(30.95, 50.94, 348.44°)
OKLaboklab(42.53% 0.1528 -0.0266)
OKLCHoklch(42.53% 0.155 350.1)
XYZxyz(12.2072, 6.6293, 10.3076)
Luminance0.0663 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871A5A #1A8747
analogous
#7E1A87 #871A5A #871A23
triadic
#871A5A #5A871A #1A5A87
tetradic
#871A5A #877E1A #1A8747 #1A2387
square
#871A5A #877E1A #1A8747 #1A2387
split-complementary
#871A5A #23871A #1A877E
monochromatic
#200616 #541038 #871A5A #BA247C #DA419B

Accessibility & contrast

On white

9.03
#871A5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#871A5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871A5A
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871A5A#FFFFFF#000000##FFFFFF
##871A5A1.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E3D5C
Deuteranopia (green-blind)
#4D5058
Tritanopia (blue-blind)
#911138
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #871a5a;
/* rgb */ color: rgb(135, 26, 90);
/* oklch */ color: oklch(42.5% 0.155 350.1);
Tailwind
colors: {
  custom: {
    50: '#ae6488',
    500: '#871a5a',
    950: '#000000',
  },
}
SCSS
$custom: #871a5a;
$custom-light: #ae6488;
$custom-dark: #000000;
JSON
{
  "hex": "#871a5a",
  "rgb": {
    "r": 135,
    "g": 26,
    "b": 90
  },
  "hsl": {
    "h": 324.771,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.42529,
    "c": 0.15514,
    "h": 350.1
  },
  "luminance": 0.06628
}

Semantic roles & 50–950 ramp

primary
#871A5A
secondary
#42BA74
accent
#EB853D
background
#FBF6F8
surface
#F6EBEF
border
#D0C6CA
text
#11060B
muted
#807A7C

Preview Lab

Preview with #871A5A

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

Preview Lab → · Contrast checker → · Palette generator →

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