#8E1771#8E1771

#8E1771 is a dark, vivid pink. Relative luminance 0.076; OKLCH L 44.6% C 0.176 H 340.6°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#8E1771
RGBrgb(142, 23, 113)
HSLhsl(315, 72%, 32%)
HSVhsv(315, 84%, 56%)
CMYKcmyk(0%, 83.8%, 20.4%, 44.3%)
CIE-LABlab(33.04, 55.42, -21.68)
CIE-LCHlch(33.04, 59.51, 338.64°)
OKLaboklab(44.63% 0.1661 -0.0585)
OKLCHoklch(44.63% 0.176 340.6)
XYZxyz(14.4428, 7.5573, 16.3177)
Luminance0.0756 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1771 #178E34
analogous
#70178E #8E1771 #8E1735
triadic
#8E1771 #718E17 #17718E
tetradic
#8E1771 #8E7017 #178E34 #17358E
square
#8E1771 #8E7017 #178E34 #17358E
split-complementary
#8E1771 #358E17 #178E70
monochromatic
#25061D #590E47 #8E1771 #C3209B #E03FB9

Accessibility & contrast

On white

8.36
#8E1771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#8E1771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1771
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1771#FFFFFF#000000##FFFFFF
##8E17711.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224273
Deuteranopia (green-blind)
#4A546E
Tritanopia (blue-blind)
#971B44
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8e1771;
/* rgb */ color: rgb(142, 23, 113);
/* oklch */ color: oklch(44.6% 0.176 340.6);
Tailwind
colors: {
  custom: {
    50: '#b3659a',
    500: '#8e1771',
    950: '#000000',
  },
}
SCSS
$custom: #8e1771;
$custom-light: #b3659a;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1771",
  "rgb": {
    "r": 142,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 314.622,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.44627,
    "c": 0.1761,
    "h": 340.6
  },
  "luminance": 0.07556
}

Semantic roles & 50–950 ramp

primary
#8E1771
secondary
#40C060
accent
#EF6539
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#12060E
muted
#817A7E

Preview Lab

Preview with #8E1771

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

Preview Lab → · Contrast checker → · Palette generator →

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