#871A5E#871A5E

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

Color values

HEX#871A5E
RGBrgb(135, 26, 94)
HSLhsl(323, 68%, 32%)
HSVhsv(323, 81%, 53%)
CMYKcmyk(0%, 80.7%, 30.4%, 47.1%)
CIE-LABlab(31.11, 50.40, -12.56)
CIE-LCHlch(31.11, 51.94, 346.01°)
OKLaboklab(42.7% 0.1538 -0.0331)
OKLCHoklch(42.7% 0.157 347.9)
XYZxyz(12.3821, 6.6993, 11.2285)
Luminance0.0670 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871A5E #1A8743
analogous
#7A1A87 #871A5E #871A28
triadic
#871A5E #5E871A #1A5E87
tetradic
#871A5E #877A1A #1A8743 #1A2887
square
#871A5E #877A1A #1A8743 #1A2887
split-complementary
#871A5E #28871A #1A877A
monochromatic
#200617 #54103A #871A5E #BA2482 #DA41A1

Accessibility & contrast

On white

8.98
#871A5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #871A5E
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871A5E#FFFFFF#000000##FFFFFF
##871A5E1.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C3D60
Deuteranopia (green-blind)
#4C505C
Tritanopia (blue-blind)
#91143A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #871a5e;
/* rgb */ color: rgb(135, 26, 94);
/* oklch */ color: oklch(42.7% 0.157 347.9);
Tailwind
colors: {
  custom: {
    50: '#ae648b',
    500: '#871a5e',
    950: '#000000',
  },
}
SCSS
$custom: #871a5e;
$custom-light: #ae648b;
$custom-dark: #000000;
JSON
{
  "hex": "#871a5e",
  "rgb": {
    "r": 135,
    "g": 26,
    "b": 94
  },
  "hsl": {
    "h": 322.569,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.42702,
    "c": 0.15733,
    "h": 347.9
  },
  "luminance": 0.06698
}

Semantic roles & 50–950 ramp

primary
#871A5E
secondary
#42BA70
accent
#EB7E3D
background
#FBF6F8
surface
#F6EBF0
border
#D0C6CB
text
#11060C
muted
#807A7D

Preview Lab

Preview with #871A5E

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

Preview Lab → · Contrast checker → · Palette generator →

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