#8E157F#8E157F

#8E157F is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.3% C 0.187 H 334.3°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#8E157F
RGBrgb(142, 21, 127)
HSLhsl(307, 74%, 32%)
HSVhsv(307, 85%, 56%)
CMYKcmyk(0%, 85.2%, 10.6%, 44.3%)
CIE-LABlab(33.61, 57.90, -29.62)
CIE-LCHlch(33.61, 65.03, 332.91°)
OKLaboklab(45.27% 0.1685 -0.0813)
OKLCHoklch(45.27% 0.187 334.3)
XYZxyz(15.2544, 7.8208, 20.7807)
Luminance0.0782 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E157F #158E24
analogous
#61158E #8E157F #8E1543
triadic
#8E157F #7F8E15 #157F8E
tetradic
#8E157F #8E6115 #158E24 #15438E
square
#8E157F #8E6115 #158E24 #15438E
split-complementary
#8E157F #438E15 #158E61
monochromatic
#230520 #590D4F #8E157F #C31DAF #E23BCD

Accessibility & contrast

On white

8.19
#8E157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8E157F
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E157F#FFFFFF#000000##FFFFFF
##8E157F1.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8e157f;
/* rgb */ color: rgb(142, 21, 127);
/* oklch */ color: oklch(45.3% 0.187 334.3);
Tailwind
colors: {
  custom: {
    50: '#b365a4',
    500: '#8e157f',
    950: '#000000',
  },
}
SCSS
$custom: #8e157f;
$custom-light: #b365a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8e157f",
  "rgb": {
    "r": 142,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 307.438,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.45266,
    "c": 0.18712,
    "h": 334.3
  },
  "luminance": 0.07819
}

Semantic roles & 50–950 ramp

primary
#8E157F
secondary
#3DC24E
accent
#F14E37
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8E157F

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

Preview Lab → · Contrast checker → · Palette generator →

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