#8E157B#8E157B

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

Color values

HEX#8E157B
RGBrgb(142, 21, 123)
HSLhsl(309, 74%, 32%)
HSVhsv(309, 85%, 56%)
CMYKcmyk(0%, 85.2%, 13.4%, 44.3%)
CIE-LABlab(33.39, 57.31, -27.45)
CIE-LCHlch(33.39, 63.54, 334.40°)
OKLaboklab(45.04% 0.1684 -0.075)
OKLCHoklch(45.04% 0.184 336)
XYZxyz(14.9989, 7.7186, 19.4350)
Luminance0.0772 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E157B #158E28
analogous
#64158E #8E157B #8E153F
triadic
#8E157B #7B8E15 #157B8E
tetradic
#8E157B #8E6415 #158E28 #153F8E
square
#8E157B #8E6415 #158E28 #153F8E
split-complementary
#8E157B #3F8E15 #158E64
monochromatic
#23051F #590D4D #8E157B #C31DA9 #E23BC8

Accessibility & contrast

On white

8.26
#8E157B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8E157B
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E157B#FFFFFF#000000##FFFFFF
##8E157B1.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17437E
Deuteranopia (green-blind)
#465578
Tritanopia (blue-blind)
#962149
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8e157b;
/* rgb */ color: rgb(142, 21, 123);
/* oklch */ color: oklch(45.0% 0.184 336.0);
Tailwind
colors: {
  custom: {
    50: '#b365a1',
    500: '#8e157b',
    950: '#000000',
  },
}
SCSS
$custom: #8e157b;
$custom-light: #b365a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8e157b",
  "rgb": {
    "r": 142,
    "g": 21,
    "b": 123
  },
  "hsl": {
    "h": 309.421,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.45041,
    "c": 0.18435,
    "h": 336
  },
  "luminance": 0.07717
}

Semantic roles & 50–950 ramp

primary
#8E157B
secondary
#3DC252
accent
#F15437
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060F
muted
#807A7E

Preview Lab

Preview with #8E157B

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

Preview Lab → · Contrast checker → · Palette generator →

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