#8E1242#8E1242

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

Color values

HEX#8E1242
RGBrgb(142, 18, 66)
HSLhsl(337, 78%, 31%)
HSVhsv(337, 87%, 56%)
CMYKcmyk(0%, 87.3%, 53.5%, 44.3%)
CIE-LABlab(30.83, 51.45, 5.60)
CIE-LCHlch(30.83, 51.75, 6.22°)
OKLaboklab(42.43% 0.1575 0.0146)
OKLCHoklch(42.43% 0.158 5.3)
XYZxyz(12.3562, 6.5785, 5.7724)
Luminance0.0658 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1242 #128E5E
analogous
#8E1280 #8E1242 #8E2012
triadic
#8E1242 #428E12 #12428E
tetradic
#8E1242 #808E12 #128E5E #20128E
square
#8E1242 #808E12 #128E5E #20128E
split-complementary
#8E1242 #128E20 #12808E
monochromatic
#210410 #580B29 #8E1242 #C4195B #E53579

Accessibility & contrast

On white

9.07
#8E1242 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#8E1242 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1242
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1242#FFFFFF#000000##FFFFFF
##8E12421.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#363943
Deuteranopia (green-blind)
#56513F
Tritanopia (blue-blind)
#9B0029
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #8e1242;
/* rgb */ color: rgb(142, 18, 66);
/* oklch */ color: oklch(42.4% 0.158 5.3);
Tailwind
colors: {
  custom: {
    50: '#b56176',
    500: '#8e1242',
    950: '#000000',
  },
}
SCSS
$custom: #8e1242;
$custom-light: #b56176;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1242",
  "rgb": {
    "r": 142,
    "g": 18,
    "b": 66
  },
  "hsl": {
    "h": 336.774,
    "s": 77.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42429,
    "c": 0.15815,
    "h": 5.3
  },
  "luminance": 0.06577
}

Semantic roles & 50–950 ramp

primary
#8E1242
secondary
#3AC28D
accent
#F4AA34
background
#FBF6F7
surface
#F7EBED
border
#D0C6C8
text
#120608
muted
#817A7B

Preview Lab

Preview with #8E1242

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

Preview Lab → · Contrast checker → · Palette generator →

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