#871E42#871E42

#871E42 is a dark, vivid pink. Relative luminance 0.065; OKLCH L 42.0% C 0.142 H 5.4°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#871E42
RGBrgb(135, 30, 66)
HSLhsl(339, 64%, 32%)
HSVhsv(339, 78%, 53%)
CMYKcmyk(0%, 77.8%, 51.1%, 47.1%)
CIE-LABlab(30.58, 46.10, 5.05)
CIE-LCHlch(30.58, 46.38, 6.26°)
OKLaboklab(41.99% 0.1409 0.0133)
OKLCHoklch(41.99% 0.142 5.4)
XYZxyz(11.4403, 6.4744, 5.8005)
Luminance0.0647 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871E42 #1E8763
analogous
#871E76 #871E42 #872F1E
triadic
#871E42 #42871E #1E4287
tetradic
#871E42 #76871E #1E8763 #2F1E87
square
#871E42 #76871E #1E8763 #2F1E87
split-complementary
#871E42 #1E872F #1E7687
monochromatic
#230811 #55132A #871E42 #B9295A #D74979

Accessibility & contrast

On white

9.15
#871E42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#871E42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871E42
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871E42#FFFFFF#000000##FFFFFF
##871E421.009.152.299.15
#FFFFFF9.151.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#383B43
Deuteranopia (green-blind)
#544F3F
Tritanopia (blue-blind)
#93042D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #871e42;
/* rgb */ color: rgb(135, 30, 66);
/* oklch */ color: oklch(42.0% 0.142 5.4);
Tailwind
colors: {
  custom: {
    50: '#af6476',
    500: '#871e42',
    950: '#000000',
  },
}
SCSS
$custom: #871e42;
$custom-light: #af6476;
$custom-dark: #000000;
JSON
{
  "hex": "#871e42",
  "rgb": {
    "r": 135,
    "g": 30,
    "b": 66
  },
  "hsl": {
    "h": 339.429,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.41991,
    "c": 0.14153,
    "h": 5.4
  },
  "luminance": 0.06473
}

Semantic roles & 50–950 ramp

primary
#871E42
secondary
#48B992
accent
#E7AE41
background
#FBF6F7
surface
#F6EBED
border
#D0C6C8
text
#110608
muted
#807A7B

Preview Lab

Preview with #871E42

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

Preview Lab → · Contrast checker → · Palette generator →

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