#871840#871840

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

Color values

HEX#871840
RGBrgb(135, 24, 64)
HSLhsl(338, 70%, 31%)
HSVhsv(338, 82%, 53%)
CMYKcmyk(0%, 82.2%, 52.6%, 47.1%)
CIE-LABlab(29.85, 47.82, 5.35)
CIE-LCHlch(29.85, 48.12, 6.38°)
OKLaboklab(41.44% 0.1462 0.014)
OKLCHoklch(41.44% 0.147 5.5)
XYZxyz(11.2447, 6.1759, 5.4495)
Luminance0.0617 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871840 #18875F
analogous
#871877 #871840 #872718
triadic
#871840 #408718 #184087
tetradic
#871840 #778718 #18875F #271887
square
#871840 #778718 #18875F #271887
split-complementary
#871840 #188727 #187787
monochromatic
#1F060F #530F27 #871840 #BB2159 #DC3D76

Accessibility & contrast

On white

9.40
#871840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#871840 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871840
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871840#FFFFFF#000000##FFFFFF
##8718401.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#353841
Deuteranopia (green-blind)
#524E3D
Tritanopia (blue-blind)
#94002A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #871840;
/* rgb */ color: rgb(135, 24, 64);
/* oklch */ color: oklch(41.4% 0.147 5.5);
Tailwind
colors: {
  custom: {
    50: '#b06274',
    500: '#871840',
    950: '#000000',
  },
}
SCSS
$custom: #871840;
$custom-light: #b06274;
$custom-dark: #000000;
JSON
{
  "hex": "#871840",
  "rgb": {
    "r": 135,
    "g": 24,
    "b": 64
  },
  "hsl": {
    "h": 338.378,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.41437,
    "c": 0.1469,
    "h": 5.5
  },
  "luminance": 0.06174
}

Semantic roles & 50–950 ramp

primary
#871840
secondary
#40BB8F
accent
#EDAD3B
background
#FBF6F7
surface
#F6EBED
border
#D0C6C8
text
#110608
muted
#807A7B

Preview Lab

Preview with #871840

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

Preview Lab → · Contrast checker → · Palette generator →

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