#871A51#871A51

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

Color values

HEX#871A51
RGBrgb(135, 26, 81)
HSLhsl(330, 68%, 32%)
HSVhsv(330, 81%, 53%)
CMYKcmyk(0%, 80.7%, 40%, 47.1%)
CIE-LABlab(30.61, 48.88, -4.82)
CIE-LCHlch(30.61, 49.12, 354.36°)
OKLaboklab(42.17% 0.1503 -0.0121)
OKLCHoklch(42.17% 0.151 355.4)
XYZxyz(11.8471, 6.4853, 8.4109)
Luminance0.0648 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871A51 #1A8750
analogous
#871A87 #871A51 #871A1A
triadic
#871A51 #51871A #1A5187
tetradic
#871A51 #87871A #1A8750 #1A1A87
square
#871A51 #87871A #1A8750 #1A1A87
split-complementary
#871A51 #1A871A #1A8787
monochromatic
#200613 #541032 #871A51 #BA2470 #DA418E

Accessibility & contrast

On white

9.14
#871A51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #871A51
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871A51#FFFFFF#000000##FFFFFF
##871A511.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#313B52
Deuteranopia (green-blind)
#4F4F4F
Tritanopia (blue-blind)
#920933
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #871a51;
/* rgb */ color: rgb(135, 26, 81);
/* oklch */ color: oklch(42.2% 0.151 355.4);
Tailwind
colors: {
  custom: {
    50: '#af6381',
    500: '#871a51',
    950: '#000000',
  },
}
SCSS
$custom: #871a51;
$custom-light: #af6381;
$custom-dark: #000000;
JSON
{
  "hex": "#871a51",
  "rgb": {
    "r": 135,
    "g": 26,
    "b": 81
  },
  "hsl": {
    "h": 329.725,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.42167,
    "c": 0.15079,
    "h": 355.4
  },
  "luminance": 0.06484
}

Semantic roles & 50–950 ramp

primary
#871A51
secondary
#42BA7E
accent
#EB933D
background
#FBF6F7
surface
#F6EBEE
border
#D0C6C9
text
#11060A
muted
#807A7C

Preview Lab

Preview with #871A51

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

Preview Lab → · Contrast checker → · Palette generator →

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