#871942#871942

#871942 is a dark, vivid pink. Relative luminance 0.062; OKLCH L 41.6% C 0.146 H 4.4°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#871942
RGBrgb(135, 25, 66)
HSLhsl(338, 69%, 31%)
HSVhsv(338, 81%, 53%)
CMYKcmyk(0%, 81.5%, 51.1%, 47.1%)
CIE-LABlab(30.01, 47.70, 4.25)
CIE-LCHlch(30.01, 47.89, 5.09°)
OKLaboklab(41.57% 0.1461 0.0113)
OKLCHoklch(41.57% 0.146 4.4)
XYZxyz(11.3237, 6.2411, 5.7616)
Luminance0.0624 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871942 #19875E
analogous
#871979 #871942 #872719
triadic
#871942 #428719 #194287
tetradic
#871942 #798719 #19875E #271987
square
#871942 #798719 #19875E #271987
split-complementary
#871942 #198727 #197987
monochromatic
#200610 #530F29 #871942 #BB235B #DB3F79

Accessibility & contrast

On white

9.34
#871942 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#871942 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871942
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871942#FFFFFF#000000##FFFFFF
##8719421.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #871942;
/* rgb */ color: rgb(135, 25, 66);
/* oklch */ color: oklch(41.6% 0.146 4.4);
Tailwind
colors: {
  custom: {
    50: '#af6276',
    500: '#871942',
    950: '#000000',
  },
}
SCSS
$custom: #871942;
$custom-light: #af6276;
$custom-dark: #000000;
JSON
{
  "hex": "#871942",
  "rgb": {
    "r": 135,
    "g": 25,
    "b": 66
  },
  "hsl": {
    "h": 337.636,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.41574,
    "c": 0.14648,
    "h": 4.4
  },
  "luminance": 0.0624
}

Semantic roles & 50–950 ramp

primary
#871942
secondary
#41BA8D
accent
#ECAA3C
background
#FBF6F7
surface
#F6EBED
border
#D0C6C8
text
#110608
muted
#807A7B

Preview Lab

Preview with #871942

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

Preview Lab → · Contrast checker → · Palette generator →

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