#8E157E#8E157E

#8E157E is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.2% C 0.186 H 334.7°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#8E157E
RGBrgb(142, 21, 126)
HSLhsl(308, 74%, 32%)
HSVhsv(308, 85%, 56%)
CMYKcmyk(0%, 85.2%, 11.3%, 44.3%)
CIE-LABlab(33.55, 57.75, -29.08)
CIE-LCHlch(33.55, 64.66, 333.27°)
OKLaboklab(45.21% 0.1685 -0.0797)
OKLCHoklch(45.21% 0.186 334.7)
XYZxyz(15.1896, 7.7949, 20.4392)
Luminance0.0779 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E157E #158E25
analogous
#62158E #8E157E #8E1542
triadic
#8E157E #7E8E15 #157E8E
tetradic
#8E157E #8E6215 #158E25 #15428E
square
#8E157E #8E6215 #158E25 #15428E
split-complementary
#8E157E #428E15 #158E62
monochromatic
#23051F #590D4F #8E157E #C31DAD #E23BCC

Accessibility & contrast

On white

8.21
#8E157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#8E157E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E157E
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E157E#FFFFFF#000000##FFFFFF
##8E157E1.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134481
Deuteranopia (green-blind)
#44557B
Tritanopia (blue-blind)
#95234B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8e157e;
/* rgb */ color: rgb(142, 21, 126);
/* oklch */ color: oklch(45.2% 0.186 334.7);
Tailwind
colors: {
  custom: {
    50: '#b365a4',
    500: '#8e157e',
    950: '#000000',
  },
}
SCSS
$custom: #8e157e;
$custom-light: #b365a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8e157e",
  "rgb": {
    "r": 142,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 307.934,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.45209,
    "c": 0.18642,
    "h": 334.7
  },
  "luminance": 0.07793
}

Semantic roles & 50–950 ramp

primary
#8E157E
secondary
#3DC24F
accent
#F15037
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8E157E

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

Preview Lab → · Contrast checker → · Palette generator →

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