#8E1173#8E1173

#8E1173 is a dark, vivid pink. Relative luminance 0.074; OKLCH L 44.4% C 0.182 H 339.5°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#8E1173
RGBrgb(142, 17, 115)
HSLhsl(313, 79%, 31%)
HSVhsv(313, 88%, 56%)
CMYKcmyk(0%, 88%, 19%, 44.3%)
CIE-LABlab(32.68, 57.03, -23.51)
CIE-LCHlch(32.68, 61.69, 337.60°)
OKLaboklab(44.4% 0.1704 -0.0637)
OKLCHoklch(44.4% 0.182 339.5)
XYZxyz(14.4507, 7.3910, 16.8819)
Luminance0.0739 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1173 #118E2C
analogous
#6A118E #8E1173 #8E1134
triadic
#8E1173 #738E11 #11738E
tetradic
#8E1173 #8E6A11 #118E2C #11348E
square
#8E1173 #8E6A11 #118E2C #11348E
split-complementary
#8E1173 #348E11 #118E6A
monochromatic
#21041A #570A47 #8E1173 #C5189F #E733C0

Accessibility & contrast

On white

8.48
#8E1173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#8E1173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1173
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1173#FFFFFF#000000##FFFFFF
##8E11731.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4175
Deuteranopia (green-blind)
#485470
Tritanopia (blue-blind)
#971844
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #8e1173;
/* rgb */ color: rgb(142, 17, 115);
/* oklch */ color: oklch(44.4% 0.182 339.5);
Tailwind
colors: {
  custom: {
    50: '#b3639b',
    500: '#8e1173',
    950: '#000000',
  },
}
SCSS
$custom: #8e1173;
$custom-light: #b3639b;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1173",
  "rgb": {
    "r": 142,
    "g": 17,
    "b": 115
  },
  "hsl": {
    "h": 312.96,
    "s": 78.616,
    "l": 31.176
  },
  "oklch": {
    "l": 0.44399,
    "c": 0.18191,
    "h": 339.5
  },
  "luminance": 0.07389
}

Semantic roles & 50–950 ramp

primary
#8E1173
secondary
#38C256
accent
#F55D33
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#12060E
muted
#817A7E

Preview Lab

Preview with #8E1173

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

Preview Lab → · Contrast checker → · Palette generator →

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