#8E157A#8E157A

#8E157A is a dark, vivid purple. Relative luminance 0.077; OKLCH L 45.0% C 0.184 H 336.4°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#8E157A
RGBrgb(142, 21, 122)
HSLhsl(310, 74%, 32%)
HSVhsv(310, 85%, 56%)
CMYKcmyk(0%, 85.2%, 14.1%, 44.3%)
CIE-LABlab(33.34, 57.16, -26.91)
CIE-LCHlch(33.34, 63.18, 334.79°)
OKLaboklab(44.99% 0.1683 -0.0735)
OKLCHoklch(44.99% 0.184 336.4)
XYZxyz(14.9366, 7.6937, 19.1070)
Luminance0.0769 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E157A #158E29
analogous
#65158E #8E157A #8E153E
triadic
#8E157A #7A8E15 #157A8E
tetradic
#8E157A #8E6515 #158E29 #153E8E
square
#8E157A #8E6515 #158E29 #153E8E
split-complementary
#8E157A #3E8E15 #158E65
monochromatic
#23051E #590D4C #8E157A #C31DA8 #E23BC7

Accessibility & contrast

On white

8.27
#8E157A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#8E157A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E157A
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E157A#FFFFFF#000000##FFFFFF
##8E157A1.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18437D
Deuteranopia (green-blind)
#465577
Tritanopia (blue-blind)
#962048
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8e157a;
/* rgb */ color: rgb(142, 21, 122);
/* oklch */ color: oklch(45.0% 0.184 336.4);
Tailwind
colors: {
  custom: {
    50: '#b365a1',
    500: '#8e157a',
    950: '#000000',
  },
}
SCSS
$custom: #8e157a;
$custom-light: #b365a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8e157a",
  "rgb": {
    "r": 142,
    "g": 21,
    "b": 122
  },
  "hsl": {
    "h": 309.917,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.44985,
    "c": 0.18367,
    "h": 336.4
  },
  "luminance": 0.07692
}

Semantic roles & 50–950 ramp

primary
#8E157A
secondary
#3DC253
accent
#F15637
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060F
muted
#807A7E

Preview Lab

Preview with #8E157A

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

Preview Lab → · Contrast checker → · Palette generator →

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