#8E1D7A#8E1D7A

#8E1D7A is a mid, vivid pink. Relative luminance 0.080; OKLCH L 45.5% C 0.177 H 336.6°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#8E1D7A
RGBrgb(142, 29, 122)
HSLhsl(311, 66%, 34%)
HSVhsv(311, 80%, 56%)
CMYKcmyk(0%, 79.6%, 14.1%, 44.3%)
CIE-LABlab(34.06, 55.08, -25.78)
CIE-LCHlch(34.06, 60.81, 334.92°)
OKLaboklab(45.5% 0.1621 -0.0703)
OKLCHoklch(45.5% 0.177 336.6)
XYZxyz(15.1078, 8.0361, 19.1640)
Luminance0.0804 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1D7A #1D8E31
analogous
#691D8E #8E1D7A #8E1D42
triadic
#8E1D7A #7A8E1D #1D7A8E
tetradic
#8E1D7A #8E691D #1D8E31 #1D428E
square
#8E1D7A #8E691D #1D8E31 #1D428E
split-complementary
#8E1D7A #428E1D #1D8E69
monochromatic
#280823 #5B134E #8E1D7A #C127A6 #DA4BC1

Accessibility & contrast

On white

8.06
#8E1D7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#8E1D7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1D7A
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1D7A#FFFFFF#000000##FFFFFF
##8E1D7A1.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20457C
Deuteranopia (green-blind)
#485677
Tritanopia (blue-blind)
#96264A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8e1d7a;
/* rgb */ color: rgb(142, 29, 122);
/* oklch */ color: oklch(45.5% 0.177 336.6);
Tailwind
colors: {
  custom: {
    50: '#b367a1',
    500: '#8e1d7a',
    950: '#000000',
  },
}
SCSS
$custom: #8e1d7a;
$custom-light: #b367a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1d7a",
  "rgb": {
    "r": 142,
    "g": 29,
    "b": 122
  },
  "hsl": {
    "h": 310.619,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.45502,
    "c": 0.17668,
    "h": 336.6
  },
  "luminance": 0.08035
}

Semantic roles & 50–950 ramp

primary
#8E1D7A
secondary
#4ABD5E
accent
#E95D3F
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8E1D7A

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

Preview Lab → · Contrast checker → · Palette generator →

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