#871F42#871F42

#871F42 is a dark, vivid pink. Relative luminance 0.065; OKLCH L 42.1% C 0.140 H 5.6°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#871F42
RGBrgb(135, 31, 66)
HSLhsl(340, 63%, 33%)
HSVhsv(340, 77%, 53%)
CMYKcmyk(0%, 77%, 51.1%, 47.1%)
CIE-LABlab(30.70, 45.75, 5.23)
CIE-LCHlch(30.70, 46.05, 6.52°)
OKLaboklab(42.08% 0.1398 0.0137)
OKLCHoklch(42.08% 0.14 5.6)
XYZxyz(11.4660, 6.5258, 5.8090)
Luminance0.0652 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871F42 #1F8764
analogous
#871F76 #871F42 #87301F
triadic
#871F42 #42871F #1F4287
tetradic
#871F42 #76871F #1F8764 #301F87
square
#871F42 #76871F #1F8764 #301F87
split-complementary
#871F42 #1F8730 #1F7687
monochromatic
#230811 #55142A #871F42 #B92A5A #D64B7A

Accessibility & contrast

On white

9.11
#871F42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #871F42
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871F42#FFFFFF#000000##FFFFFF
##871F421.009.112.309.11
#FFFFFF9.111.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#383B43
Deuteranopia (green-blind)
#545040
Tritanopia (blue-blind)
#93062E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #871f42;
/* rgb */ color: rgb(135, 31, 66);
/* oklch */ color: oklch(42.1% 0.140 5.6);
Tailwind
colors: {
  custom: {
    50: '#af6576',
    500: '#871f42',
    950: '#000000',
  },
}
SCSS
$custom: #871f42;
$custom-light: #af6576;
$custom-dark: #000000;
JSON
{
  "hex": "#871f42",
  "rgb": {
    "r": 135,
    "g": 31,
    "b": 66
  },
  "hsl": {
    "h": 339.808,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.42081,
    "c": 0.14045,
    "h": 5.6
  },
  "luminance": 0.06524
}

Semantic roles & 50–950 ramp

primary
#871F42
secondary
#4AB893
accent
#E6AF42
background
#FBF6F7
surface
#F6EBED
border
#D0C6C8
text
#110608
muted
#807A7B

Preview Lab

Preview with #871F42

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

Preview Lab → · Contrast checker → · Palette generator →

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