#871842#871842

#871842 is a dark, vivid pink. Relative luminance 0.062; OKLCH L 41.5% C 0.147 H 4.2°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#871842
RGBrgb(135, 24, 66)
HSLhsl(337, 70%, 31%)
HSVhsv(337, 82%, 53%)
CMYKcmyk(0%, 82.2%, 51.1%, 47.1%)
CIE-LABlab(29.91, 47.99, 4.10)
CIE-LCHlch(29.91, 48.17, 4.88°)
OKLaboklab(41.5% 0.147 0.0109)
OKLCHoklch(41.5% 0.147 4.2)
XYZxyz(11.3027, 6.1991, 5.7546)
Luminance0.0620 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871842 #18875D
analogous
#871879 #871842 #872518
triadic
#871842 #428718 #184287
tetradic
#871842 #798718 #18875D #251887
square
#871842 #798718 #18875D #251887
split-complementary
#871842 #188725 #187987
monochromatic
#1F060F #530F29 #871842 #BB215B #DC3D79

Accessibility & contrast

On white

9.38
#871842 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#871842 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871842
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871842#FFFFFF#000000##FFFFFF
##8718421.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#353943
Deuteranopia (green-blind)
#524E3F
Tritanopia (blue-blind)
#93002B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #871842;
/* rgb */ color: rgb(135, 24, 66);
/* oklch */ color: oklch(41.5% 0.147 4.2);
Tailwind
colors: {
  custom: {
    50: '#b06276',
    500: '#871842',
    950: '#000000',
  },
}
SCSS
$custom: #871842;
$custom-light: #b06276;
$custom-dark: #000000;
JSON
{
  "hex": "#871842",
  "rgb": {
    "r": 135,
    "g": 24,
    "b": 66
  },
  "hsl": {
    "h": 337.297,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.41498,
    "c": 0.1474,
    "h": 4.2
  },
  "luminance": 0.06198
}

Semantic roles & 50–950 ramp

primary
#871842
secondary
#40BB8C
accent
#EDA93B
background
#FBF6F7
surface
#F6EBED
border
#D0C6C8
text
#110608
muted
#807A7B

Preview Lab

Preview with #871842

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

Preview Lab → · Contrast checker → · Palette generator →

#871842 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva