#8E1B7A#8E1B7A

#8E1B7A is a mid, vivid pink. Relative luminance 0.079; OKLCH L 45.4% C 0.179 H 336.5°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#8E1B7A
RGBrgb(142, 27, 122)
HSLhsl(310, 68%, 33%)
HSVhsv(310, 81%, 56%)
CMYKcmyk(0%, 81%, 14.1%, 44.3%)
CIE-LABlab(33.86, 55.65, -26.09)
CIE-LCHlch(33.86, 61.46, 334.88°)
OKLaboklab(45.36% 0.1638 -0.0711)
OKLCHoklch(45.36% 0.179 336.5)
XYZxyz(15.0604, 7.9412, 19.1482)
Luminance0.0794 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1B7A #1B8E2F
analogous
#681B8E #8E1B7A #8E1B40
triadic
#8E1B7A #7A8E1B #1B7A8E
tetradic
#8E1B7A #8E681B #1B8E2F #1B408E
square
#8E1B7A #8E681B #1B8E2F #1B408E
split-complementary
#8E1B7A #408E1B #1B8E68
monochromatic
#270722 #5B114E #8E1B7A #C125A6 #DC47C2

Accessibility & contrast

On white

8.11
#8E1B7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#8E1B7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1B7A
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1B7A#FFFFFF#000000##FFFFFF
##8E1B7A1.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E457C
Deuteranopia (green-blind)
#485677
Tritanopia (blue-blind)
#96244A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8e1b7a;
/* rgb */ color: rgb(142, 27, 122);
/* oklch */ color: oklch(45.4% 0.179 336.5);
Tailwind
colors: {
  custom: {
    50: '#b366a1',
    500: '#8e1b7a',
    950: '#000000',
  },
}
SCSS
$custom: #8e1b7a;
$custom-light: #b366a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1b7a",
  "rgb": {
    "r": 142,
    "g": 27,
    "b": 122
  },
  "hsl": {
    "h": 310.435,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.4536,
    "c": 0.17859,
    "h": 336.5
  },
  "luminance": 0.0794
}

Semantic roles & 50–950 ramp

primary
#8E1B7A
secondary
#47BE5C
accent
#EB5B3D
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8E1B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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