#8E1772#8E1772

#8E1772 is a dark, vivid pink. Relative luminance 0.076; OKLCH L 44.7% C 0.177 H 340.1°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#8E1772
RGBrgb(142, 23, 114)
HSLhsl(314, 72%, 32%)
HSVhsv(314, 84%, 56%)
CMYKcmyk(0%, 83.8%, 19.7%, 44.3%)
CIE-LABlab(33.09, 55.56, -22.23)
CIE-LCHlch(33.09, 59.84, 338.19°)
OKLaboklab(44.68% 0.1662 -0.0601)
OKLCHoklch(44.68% 0.177 340.1)
XYZxyz(14.4994, 7.5800, 16.6158)
Luminance0.0758 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1772 #178E33
analogous
#6F178E #8E1772 #8E1736
triadic
#8E1772 #728E17 #17728E
tetradic
#8E1772 #8E6F17 #178E33 #17368E
square
#8E1772 #8E6F17 #178E33 #17368E
split-complementary
#8E1772 #368E17 #178E6F
monochromatic
#25061D #590E48 #8E1772 #C3209C #E03FBA

Accessibility & contrast

On white

8.35
#8E1772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#8E1772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1772
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1772#FFFFFF#000000##FFFFFF
##8E17721.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224274
Deuteranopia (green-blind)
#4A546F
Tritanopia (blue-blind)
#971C44
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8e1772;
/* rgb */ color: rgb(142, 23, 114);
/* oklch */ color: oklch(44.7% 0.177 340.1);
Tailwind
colors: {
  custom: {
    50: '#b3659b',
    500: '#8e1772',
    950: '#000000',
  },
}
SCSS
$custom: #8e1772;
$custom-light: #b3659b;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1772",
  "rgb": {
    "r": 142,
    "g": 23,
    "b": 114
  },
  "hsl": {
    "h": 314.118,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.44678,
    "c": 0.17675,
    "h": 340.1
  },
  "luminance": 0.07578
}

Semantic roles & 50–950 ramp

primary
#8E1772
secondary
#40C05F
accent
#EF6439
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#12060E
muted
#817A7E

Preview Lab

Preview with #8E1772

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

Preview Lab → · Contrast checker → · Palette generator →

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