#871A5D#871A5D

#871A5D is a dark, vivid pink. Relative luminance 0.067; OKLCH L 42.7% C 0.157 H 348.4°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#871A5D
RGBrgb(135, 26, 93)
HSLhsl(323, 68%, 32%)
HSVhsv(323, 81%, 53%)
CMYKcmyk(0%, 80.7%, 31.1%, 47.1%)
CIE-LABlab(31.07, 50.27, -11.97)
CIE-LCHlch(31.07, 51.68, 346.60°)
OKLaboklab(42.66% 0.1536 -0.0315)
OKLCHoklch(42.66% 0.157 348.4)
XYZxyz(12.3375, 6.6814, 10.9937)
Luminance0.0668 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871A5D #1A8744
analogous
#7B1A87 #871A5D #871A27
triadic
#871A5D #5D871A #1A5D87
tetradic
#871A5D #877B1A #1A8744 #1A2787
square
#871A5D #877B1A #1A8744 #1A2787
split-complementary
#871A5D #27871A #1A877B
monochromatic
#200616 #54103A #871A5D #BA2480 #DA419F

Accessibility & contrast

On white

8.99
#871A5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#871A5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871A5D
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871A5D#FFFFFF#000000##FFFFFF
##871A5D1.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C3D5F
Deuteranopia (green-blind)
#4C505B
Tritanopia (blue-blind)
#911439
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #871a5d;
/* rgb */ color: rgb(135, 26, 93);
/* oklch */ color: oklch(42.7% 0.157 348.4);
Tailwind
colors: {
  custom: {
    50: '#ae648b',
    500: '#871a5d',
    950: '#000000',
  },
}
SCSS
$custom: #871a5d;
$custom-light: #ae648b;
$custom-dark: #000000;
JSON
{
  "hex": "#871a5d",
  "rgb": {
    "r": 135,
    "g": 26,
    "b": 93
  },
  "hsl": {
    "h": 323.119,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.42658,
    "c": 0.15676,
    "h": 348.4
  },
  "luminance": 0.0668
}

Semantic roles & 50–950 ramp

primary
#871A5D
secondary
#42BA71
accent
#EB803D
background
#FBF6F8
surface
#F6EBF0
border
#D0C6CB
text
#11060C
muted
#807A7D

Preview Lab

Preview with #871A5D

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

Preview Lab → · Contrast checker → · Palette generator →

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