#8E1238#8E1238

#8E1238 is a dark, vivid pink. Relative luminance 0.065; OKLCH L 42.2% C 0.156 H 10.9°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#8E1238
RGBrgb(142, 18, 56)
HSLhsl(342, 78%, 31%)
HSVhsv(342, 87%, 56%)
CMYKcmyk(0%, 87.3%, 60.6%, 44.3%)
CIE-LABlab(30.57, 50.70, 11.91)
CIE-LCHlch(30.57, 52.08, 13.22°)
OKLaboklab(42.16% 0.1535 0.0296)
OKLCHoklch(42.16% 0.156 10.9)
XYZxyz(12.0867, 6.4708, 4.3532)
Luminance0.0647 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1238 #128E68
analogous
#8E1276 #8E1238 #8E2A12
triadic
#8E1238 #388E12 #12388E
tetradic
#8E1238 #768E12 #128E68 #2A128E
square
#8E1238 #768E12 #128E68 #2A128E
split-complementary
#8E1238 #128E2A #12768E
monochromatic
#21040D #580B23 #8E1238 #C4194D #E5356B

Accessibility & contrast

On white

9.16
#8E1238 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#8E1238 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1238
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1238#FFFFFF#000000##FFFFFF
##8E12381.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#383839
Deuteranopia (green-blind)
#575135
Tritanopia (blue-blind)
#9C0024
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #8e1238;
/* rgb */ color: rgb(142, 18, 56);
/* oklch */ color: oklch(42.2% 0.156 10.9);
Tailwind
colors: {
  custom: {
    50: '#b6616e',
    500: '#8e1238',
    950: '#000000',
  },
}
SCSS
$custom: #8e1238;
$custom-light: #b6616e;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1238",
  "rgb": {
    "r": 142,
    "g": 18,
    "b": 56
  },
  "hsl": {
    "h": 341.613,
    "s": 77.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42157,
    "c": 0.15633,
    "h": 10.9
  },
  "luminance": 0.06469
}

Semantic roles & 50–950 ramp

primary
#8E1238
secondary
#3AC298
accent
#F4B934
background
#FCF6F6
surface
#F8EBEB
border
#D1C6C6
text
#120607
muted
#817A7A

Preview Lab

Preview with #8E1238

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

Preview Lab → · Contrast checker → · Palette generator →

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