#8E1542#8E1542

#8E1542 is a dark, vivid pink. Relative luminance 0.067; OKLCH L 42.6% C 0.156 H 5.7°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#8E1542
RGBrgb(142, 21, 66)
HSLhsl(338, 74%, 32%)
HSVhsv(338, 85%, 56%)
CMYKcmyk(0%, 85.2%, 53.5%, 44.3%)
CIE-LABlab(31.07, 50.75, 5.95)
CIE-LCHlch(31.07, 51.09, 6.69°)
OKLaboklab(42.61% 0.1552 0.0155)
OKLCHoklch(42.61% 0.156 5.7)
XYZxyz(12.4080, 6.6823, 5.7896)
Luminance0.0668 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1542 #158E61
analogous
#8E157F #8E1542 #8E2515
triadic
#8E1542 #428E15 #15428E
tetradic
#8E1542 #7F8E15 #158E61 #25158E
square
#8E1542 #7F8E15 #158E61 #25158E
split-complementary
#8E1542 #158E25 #157F8E
monochromatic
#230510 #590D29 #8E1542 #C31D5B #E23B79

Accessibility & contrast

On white

8.99
#8E1542 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#8E1542 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1542
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1542#FFFFFF#000000##FFFFFF
##8E15421.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#373A43
Deuteranopia (green-blind)
#56523F
Tritanopia (blue-blind)
#9B002A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #8e1542;
/* rgb */ color: rgb(142, 21, 66);
/* oklch */ color: oklch(42.6% 0.156 5.7);
Tailwind
colors: {
  custom: {
    50: '#b56276',
    500: '#8e1542',
    950: '#000000',
  },
}
SCSS
$custom: #8e1542;
$custom-light: #b56276;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1542",
  "rgb": {
    "r": 142,
    "g": 21,
    "b": 66
  },
  "hsl": {
    "h": 337.686,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.42609,
    "c": 0.15597,
    "h": 5.7
  },
  "luminance": 0.0668
}

Semantic roles & 50–950 ramp

primary
#8E1542
secondary
#3DC290
accent
#F1AC37
background
#FBF6F7
surface
#F7EBED
border
#D0C6C8
text
#120608
muted
#817A7B

Preview Lab

Preview with #8E1542

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

Preview Lab → · Contrast checker → · Palette generator →

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