#8E1842#8E1842

#8E1842 is a dark, vivid pink. Relative luminance 0.068; OKLCH L 42.8% C 0.154 H 6.2°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#8E1842
RGBrgb(142, 24, 66)
HSLhsl(339, 71%, 33%)
HSVhsv(339, 83%, 56%)
CMYKcmyk(0%, 83.1%, 53.5%, 44.3%)
CIE-LABlab(31.35, 49.97, 6.34)
CIE-LCHlch(31.35, 50.37, 7.23°)
OKLaboklab(42.81% 0.1527 0.0165)
OKLCHoklch(42.81% 0.154 6.2)
XYZxyz(12.4665, 6.7992, 5.8091)
Luminance0.0680 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1842 #188E64
analogous
#8E187D #8E1842 #8E2918
triadic
#8E1842 #428E18 #18428E
tetradic
#8E1842 #7D8E18 #188E64 #29188E
square
#8E1842 #7D8E18 #188E64 #29188E
split-complementary
#8E1842 #188E29 #187D8E
monochromatic
#250611 #5A0F2A #8E1842 #C2215A #DF417A

Accessibility & contrast

On white

8.90
#8E1842 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#8E1842 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1842
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1842#FFFFFF#000000##FFFFFF
##8E18421.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#383B43
Deuteranopia (green-blind)
#57523F
Tritanopia (blue-blind)
#9B002B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #8e1842;
/* rgb */ color: rgb(142, 24, 66);
/* oklch */ color: oklch(42.8% 0.154 6.2);
Tailwind
colors: {
  custom: {
    50: '#b56376',
    500: '#8e1842',
    950: '#000000',
  },
}
SCSS
$custom: #8e1842;
$custom-light: #b56376;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1842",
  "rgb": {
    "r": 142,
    "g": 24,
    "b": 66
  },
  "hsl": {
    "h": 338.644,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.42809,
    "c": 0.15355,
    "h": 6.2
  },
  "luminance": 0.06797
}

Semantic roles & 50–950 ramp

primary
#8E1842
secondary
#42C093
accent
#EEAE3A
background
#FBF6F7
surface
#F7EBED
border
#D0C6C8
text
#120608
muted
#817A7B

Preview Lab

Preview with #8E1842

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

Preview Lab → · Contrast checker → · Palette generator →

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