#8E1D42#8E1D42

#8E1D42 is a dark, vivid pink. Relative luminance 0.070; OKLCH L 43.2% C 0.149 H 7.0°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#8E1D42
RGBrgb(142, 29, 66)
HSLhsl(340, 66%, 34%)
HSVhsv(340, 80%, 56%)
CMYKcmyk(0%, 79.6%, 53.5%, 44.3%)
CIE-LABlab(31.86, 48.50, 7.07)
CIE-LCHlch(31.86, 49.01, 8.29°)
OKLaboklab(43.19% 0.1479 0.0183)
OKLCHoklch(43.19% 0.149 7)
XYZxyz(12.5792, 7.0246, 5.8467)
Luminance0.0702 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1D42 #1D8E69
analogous
#8E1D7A #8E1D42 #8E301D
triadic
#8E1D42 #428E1D #1D428E
tetradic
#8E1D42 #7A8E1D #1D8E69 #301D8E
square
#8E1D42 #7A8E1D #1D8E69 #301D8E
split-complementary
#8E1D42 #1D8E30 #1D7A8E
monochromatic
#280813 #5B132A #8E1D42 #C1275A #DA4B7A

Accessibility & contrast

On white

8.73
#8E1D42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#8E1D42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1D42
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1D42#FFFFFF#000000##FFFFFF
##8E1D421.008.732.408.73
#FFFFFF8.731.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A3D43
Deuteranopia (green-blind)
#58533F
Tritanopia (blue-blind)
#9B002D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #8e1d42;
/* rgb */ color: rgb(142, 29, 66);
/* oklch */ color: oklch(43.2% 0.149 7.0);
Tailwind
colors: {
  custom: {
    50: '#b56576',
    500: '#8e1d42',
    950: '#000000',
  },
}
SCSS
$custom: #8e1d42;
$custom-light: #b56576;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1d42",
  "rgb": {
    "r": 142,
    "g": 29,
    "b": 66
  },
  "hsl": {
    "h": 340.354,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.4319,
    "c": 0.14905,
    "h": 7
  },
  "luminance": 0.07023
}

Semantic roles & 50–950 ramp

primary
#8E1D42
secondary
#4ABD97
accent
#E9B13F
background
#FBF6F7
surface
#F7EBED
border
#D0C6C8
text
#120608
muted
#817A7B

Preview Lab

Preview with #8E1D42

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

Preview Lab → · Contrast checker → · Palette generator →

#8E1D42 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva