#8E1240#8E1240

#8E1240 is a dark, vivid pink. Relative luminance 0.066; OKLCH L 42.4% C 0.158 H 6.4°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#8E1240
RGBrgb(142, 18, 64)
HSLhsl(338, 78%, 31%)
HSVhsv(338, 87%, 56%)
CMYKcmyk(0%, 87.3%, 54.9%, 44.3%)
CIE-LABlab(30.77, 51.29, 6.86)
CIE-LCHlch(30.77, 51.74, 7.62°)
OKLaboklab(42.37% 0.1567 0.0177)
OKLCHoklch(42.37% 0.158 6.4)
XYZxyz(12.2982, 6.5554, 5.4672)
Luminance0.0655 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1240 #128E60
analogous
#8E127E #8E1240 #8E2212
triadic
#8E1240 #408E12 #12408E
tetradic
#8E1240 #7E8E12 #128E60 #22128E
square
#8E1240 #7E8E12 #128E60 #22128E
split-complementary
#8E1240 #128E22 #127E8E
monochromatic
#21040F #580B28 #8E1240 #C41958 #E53576

Accessibility & contrast

On white

9.09
#8E1240 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#8E1240 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1240
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1240#FFFFFF#000000##FFFFFF
##8E12401.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#363941
Deuteranopia (green-blind)
#56513D
Tritanopia (blue-blind)
#9B0028
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #8e1240;
/* rgb */ color: rgb(142, 18, 64);
/* oklch */ color: oklch(42.4% 0.158 6.4);
Tailwind
colors: {
  custom: {
    50: '#b56174',
    500: '#8e1240',
    950: '#000000',
  },
}
SCSS
$custom: #8e1240;
$custom-light: #b56174;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1240",
  "rgb": {
    "r": 142,
    "g": 18,
    "b": 64
  },
  "hsl": {
    "h": 337.742,
    "s": 77.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42371,
    "c": 0.1577,
    "h": 6.4
  },
  "luminance": 0.06554
}

Semantic roles & 50–950 ramp

primary
#8E1240
secondary
#3AC290
accent
#F4AD34
background
#FBF6F7
surface
#F7EBED
border
#D0C6C8
text
#120608
muted
#817A7B

Preview Lab

Preview with #8E1240

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

Preview Lab → · Contrast checker → · Palette generator →

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