#871A5F#871A5F

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

Color values

HEX#871A5F
RGBrgb(135, 26, 95)
HSLhsl(322, 68%, 32%)
HSVhsv(322, 81%, 53%)
CMYKcmyk(0%, 80.7%, 29.6%, 47.1%)
CIE-LABlab(31.15, 50.52, -13.15)
CIE-LCHlch(31.15, 52.21, 345.42°)
OKLaboklab(42.75% 0.154 -0.0347)
OKLCHoklch(42.75% 0.158 347.3)
XYZxyz(12.4273, 6.7173, 11.4664)
Luminance0.0672 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871A5F #1A8742
analogous
#791A87 #871A5F #871A29
triadic
#871A5F #5F871A #1A5F87
tetradic
#871A5F #87791A #1A8742 #1A2987
square
#871A5F #87791A #1A8742 #1A2987
split-complementary
#871A5F #29871A #1A8779
monochromatic
#200617 #54103B #871A5F #BA2483 #DA41A2

Accessibility & contrast

On white

8.96
#871A5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #871A5F
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871A5F#FFFFFF#000000##FFFFFF
##871A5F1.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B3D61
Deuteranopia (green-blind)
#4C505D
Tritanopia (blue-blind)
#91153B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #871a5f;
/* rgb */ color: rgb(135, 26, 95);
/* oklch */ color: oklch(42.7% 0.158 347.3);
Tailwind
colors: {
  custom: {
    50: '#ae648c',
    500: '#871a5f',
    950: '#000000',
  },
}
SCSS
$custom: #871a5f;
$custom-light: #ae648c;
$custom-dark: #000000;
JSON
{
  "hex": "#871a5f",
  "rgb": {
    "r": 135,
    "g": 26,
    "b": 95
  },
  "hsl": {
    "h": 322.018,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.42747,
    "c": 0.15789,
    "h": 347.3
  },
  "luminance": 0.06716
}

Semantic roles & 50–950 ramp

primary
#871A5F
secondary
#42BA6E
accent
#EB7D3D
background
#FBF6F8
surface
#F6EBF0
border
#D0C6CB
text
#11060C
muted
#807A7D

Preview Lab

Preview with #871A5F

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

Preview Lab → · Contrast checker → · Palette generator →

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