#8E1171#8E1171

#8E1171 is a dark, vivid pink. Relative luminance 0.073; OKLCH L 44.3% C 0.181 H 340.4°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#8E1171
RGBrgb(142, 17, 113)
HSLhsl(314, 79%, 31%)
HSVhsv(314, 88%, 56%)
CMYKcmyk(0%, 88%, 20.4%, 44.3%)
CIE-LABlab(32.58, 56.76, -22.40)
CIE-LCHlch(32.58, 61.02, 338.47°)
OKLaboklab(44.3% 0.1702 -0.0605)
OKLCHoklch(44.3% 0.181 340.4)
XYZxyz(14.3369, 7.3455, 16.2824)
Luminance0.0734 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1171 #118E2E
analogous
#6C118E #8E1171 #8E1132
triadic
#8E1171 #718E11 #11718E
tetradic
#8E1171 #8E6C11 #118E2E #11328E
square
#8E1171 #8E6C11 #118E2E #11328E
split-complementary
#8E1171 #328E11 #118E6C
monochromatic
#21041A #570A46 #8E1171 #C5189C #E733BD

Accessibility & contrast

On white

8.51
#8E1171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#8E1171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1171
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1171#FFFFFF#000000##FFFFFF
##8E11711.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4073
Deuteranopia (green-blind)
#49536E
Tritanopia (blue-blind)
#971743
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #8e1171;
/* rgb */ color: rgb(142, 17, 113);
/* oklch */ color: oklch(44.3% 0.181 340.4);
Tailwind
colors: {
  custom: {
    50: '#b3639a',
    500: '#8e1171',
    950: '#000000',
  },
}
SCSS
$custom: #8e1171;
$custom-light: #b3639a;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1171",
  "rgb": {
    "r": 142,
    "g": 17,
    "b": 113
  },
  "hsl": {
    "h": 313.92,
    "s": 78.616,
    "l": 31.176
  },
  "oklch": {
    "l": 0.44295,
    "c": 0.18063,
    "h": 340.4
  },
  "luminance": 0.07344
}

Semantic roles & 50–950 ramp

primary
#8E1171
secondary
#38C258
accent
#F56033
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#12060E
muted
#817A7E

Preview Lab

Preview with #8E1171

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

Preview Lab → · Contrast checker → · Palette generator →

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