#8E177A#8E177A

#8E177A is a mid, vivid pink. Relative luminance 0.078; OKLCH L 45.1% C 0.182 H 336.5°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#8E177A
RGBrgb(142, 23, 122)
HSLhsl(310, 72%, 32%)
HSVhsv(310, 84%, 56%)
CMYKcmyk(0%, 83.8%, 14.1%, 44.3%)
CIE-LABlab(33.50, 56.69, -26.65)
CIE-LCHlch(33.50, 62.64, 334.82°)
OKLaboklab(45.1% 0.1669 -0.0727)
OKLCHoklch(45.1% 0.182 336.5)
XYZxyz(14.9749, 7.7702, 19.1197)
Luminance0.0777 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E177A #178E2B
analogous
#67178E #8E177A #8E173F
triadic
#8E177A #7A8E17 #177A8E
tetradic
#8E177A #8E6717 #178E2B #173F8E
square
#8E177A #8E6717 #178E2B #173F8E
split-complementary
#8E177A #3F8E17 #178E67
monochromatic
#25061F #590E4D #8E177A #C320A7 #E03FC5

Accessibility & contrast

On white

8.22
#8E177A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#8E177A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E177A
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E177A#FFFFFF#000000##FFFFFF
##8E177A1.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A447C
Deuteranopia (green-blind)
#475577
Tritanopia (blue-blind)
#962149
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8e177a;
/* rgb */ color: rgb(142, 23, 122);
/* oklch */ color: oklch(45.1% 0.182 336.5);
Tailwind
colors: {
  custom: {
    50: '#b365a1',
    500: '#8e177a',
    950: '#000000',
  },
}
SCSS
$custom: #8e177a;
$custom-light: #b365a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8e177a",
  "rgb": {
    "r": 142,
    "g": 23,
    "b": 122
  },
  "hsl": {
    "h": 310.084,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.45102,
    "c": 0.18208,
    "h": 336.5
  },
  "luminance": 0.07769
}

Semantic roles & 50–950 ramp

primary
#8E177A
secondary
#40C056
accent
#EF5839
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060F
muted
#807A7E

Preview Lab

Preview with #8E177A

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

Preview Lab → · Contrast checker → · Palette generator →

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