#871A52#871A52

#871A52 is a dark, vivid pink. Relative luminance 0.065; OKLCH L 42.2% C 0.151 H 354.8°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#871A52
RGBrgb(135, 26, 82)
HSLhsl(329, 68%, 32%)
HSVhsv(329, 81%, 53%)
CMYKcmyk(0%, 80.7%, 39.3%, 47.1%)
CIE-LABlab(30.64, 48.99, -5.43)
CIE-LCHlch(30.64, 49.29, 353.68°)
OKLaboklab(42.21% 0.1506 -0.0137)
OKLCHoklch(42.21% 0.151 354.8)
XYZxyz(11.8849, 6.5004, 8.6099)
Luminance0.0650 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871A52 #1A874F
analogous
#861A87 #871A52 #871A1C
triadic
#871A52 #52871A #1A5287
tetradic
#871A52 #87861A #1A874F #1A1C87
square
#871A52 #87861A #1A874F #1A1C87
split-complementary
#871A52 #1C871A #1A8786
monochromatic
#200614 #541033 #871A52 #BA2471 #DA4190

Accessibility & contrast

On white

9.13
#871A52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#871A52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871A52
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871A52#FFFFFF#000000##FFFFFF
##871A521.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#313B53
Deuteranopia (green-blind)
#4F4F50
Tritanopia (blue-blind)
#920A34
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #871a52;
/* rgb */ color: rgb(135, 26, 82);
/* oklch */ color: oklch(42.2% 0.151 354.8);
Tailwind
colors: {
  custom: {
    50: '#af6382',
    500: '#871a52',
    950: '#000000',
  },
}
SCSS
$custom: #871a52;
$custom-light: #af6382;
$custom-dark: #000000;
JSON
{
  "hex": "#871a52",
  "rgb": {
    "r": 135,
    "g": 26,
    "b": 82
  },
  "hsl": {
    "h": 329.174,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.42205,
    "c": 0.15123,
    "h": 354.8
  },
  "luminance": 0.06499
}

Semantic roles & 50–950 ramp

primary
#871A52
secondary
#42BA7D
accent
#EB923D
background
#FBF6F7
surface
#F6EBEE
border
#D0C6C9
text
#11060A
muted
#807A7C

Preview Lab

Preview with #871A52

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

Preview Lab → · Contrast checker → · Palette generator →

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