#871A5B#871A5B

#871A5B is a dark, vivid pink. Relative luminance 0.066; OKLCH L 42.6% C 0.156 H 349.5°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#871A5B
RGBrgb(135, 26, 91)
HSLhsl(324, 68%, 32%)
HSVhsv(324, 81%, 53%)
CMYKcmyk(0%, 80.7%, 32.6%, 47.1%)
CIE-LABlab(30.99, 50.03, -10.80)
CIE-LCHlch(30.99, 51.18, 347.82°)
OKLaboklab(42.57% 0.1531 -0.0282)
OKLCHoklch(42.57% 0.156 349.5)
XYZxyz(12.2501, 6.6465, 10.5333)
Luminance0.0664 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871A5B #1A8746
analogous
#7D1A87 #871A5B #871A25
triadic
#871A5B #5B871A #1A5B87
tetradic
#871A5B #877D1A #1A8746 #1A2587
square
#871A5B #877D1A #1A8746 #1A2587
split-complementary
#871A5B #25871A #1A877D
monochromatic
#200616 #541038 #871A5B #BA247E #DA419C

Accessibility & contrast

On white

9.02
#871A5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #871A5B
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871A5B#FFFFFF#000000##FFFFFF
##871A5B1.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D3D5D
Deuteranopia (green-blind)
#4D5059
Tritanopia (blue-blind)
#911238
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #871a5b;
/* rgb */ color: rgb(135, 26, 91);
/* oklch */ color: oklch(42.6% 0.156 349.5);
Tailwind
colors: {
  custom: {
    50: '#ae6489',
    500: '#871a5b',
    950: '#000000',
  },
}
SCSS
$custom: #871a5b;
$custom-light: #ae6489;
$custom-dark: #000000;
JSON
{
  "hex": "#871a5b",
  "rgb": {
    "r": 135,
    "g": 26,
    "b": 91
  },
  "hsl": {
    "h": 324.22,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.42571,
    "c": 0.15567,
    "h": 349.5
  },
  "luminance": 0.06645
}

Semantic roles & 50–950 ramp

primary
#871A5B
secondary
#42BA73
accent
#EB833D
background
#FBF6F8
surface
#F6EBF0
border
#D0C6CB
text
#11060B
muted
#807A7C

Preview Lab

Preview with #871A5B

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

Preview Lab → · Contrast checker → · Palette generator →

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