#8E1871#8E1871

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

Color values

HEX#8E1871
RGBrgb(142, 24, 113)
HSLhsl(315, 71%, 33%)
HSVhsv(315, 83%, 56%)
CMYKcmyk(0%, 83.1%, 20.4%, 44.3%)
CIE-LABlab(33.13, 55.17, -21.54)
CIE-LCHlch(33.13, 59.22, 338.67°)
OKLaboklab(44.69% 0.1653 -0.0582)
OKLCHoklch(44.69% 0.175 340.6)
XYZxyz(14.4631, 7.5978, 16.3244)
Luminance0.0760 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1871 #188E35
analogous
#70188E #8E1871 #8E1836
triadic
#8E1871 #718E18 #18718E
tetradic
#8E1871 #8E7018 #188E35 #18368E
square
#8E1871 #8E7018 #188E35 #18368E
split-complementary
#8E1871 #368E18 #188E70
monochromatic
#25061E #5A0F47 #8E1871 #C2219B #DF41B8

Accessibility & contrast

On white

8.34
#8E1871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8E1871
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1871#FFFFFF#000000##FFFFFF
##8E18711.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8e1871;
/* rgb */ color: rgb(142, 24, 113);
/* oklch */ color: oklch(44.7% 0.175 340.6);
Tailwind
colors: {
  custom: {
    50: '#b3659a',
    500: '#8e1871',
    950: '#000000',
  },
}
SCSS
$custom: #8e1871;
$custom-light: #b3659a;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1871",
  "rgb": {
    "r": 142,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 314.746,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.4469,
    "c": 0.17525,
    "h": 340.6
  },
  "luminance": 0.07596
}

Semantic roles & 50–950 ramp

primary
#8E1871
secondary
#42C061
accent
#EE663A
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060E
muted
#807A7E

Preview Lab

Preview with #8E1871

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

Preview Lab → · Contrast checker → · Palette generator →

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