#8E157C#8E157C

#8E157C is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.1% C 0.185 H 335.5°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#8E157C
RGBrgb(142, 21, 124)
HSLhsl(309, 74%, 32%)
HSVhsv(309, 85%, 56%)
CMYKcmyk(0%, 85.2%, 12.7%, 44.3%)
CIE-LABlab(33.44, 57.45, -28.00)
CIE-LCHlch(33.44, 63.91, 334.02°)
OKLaboklab(45.1% 0.1684 -0.0766)
OKLCHoklch(45.1% 0.185 335.5)
XYZxyz(15.0618, 7.7438, 19.7663)
Luminance0.0774 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E157C #158E27
analogous
#64158E #8E157C #8E153F
triadic
#8E157C #7C8E15 #157C8E
tetradic
#8E157C #8E6415 #158E27 #153F8E
square
#8E157C #8E6415 #158E27 #153F8E
split-complementary
#8E157C #3F8E15 #158E64
monochromatic
#23051F #590D4D #8E157C #C31DAB #E23BC9

Accessibility & contrast

On white

8.24
#8E157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#8E157C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E157C
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E157C#FFFFFF#000000##FFFFFF
##8E157C1.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16437F
Deuteranopia (green-blind)
#455579
Tritanopia (blue-blind)
#96214A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8e157c;
/* rgb */ color: rgb(142, 21, 124);
/* oklch */ color: oklch(45.1% 0.185 335.5);
Tailwind
colors: {
  custom: {
    50: '#b365a2',
    500: '#8e157c',
    950: '#000000',
  },
}
SCSS
$custom: #8e157c;
$custom-light: #b365a2;
$custom-dark: #000000;
JSON
{
  "hex": "#8e157c",
  "rgb": {
    "r": 142,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 308.926,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.45096,
    "c": 0.18504,
    "h": 335.5
  },
  "luminance": 0.07742
}

Semantic roles & 50–950 ramp

primary
#8E157C
secondary
#3DC251
accent
#F15337
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8E157C

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

Preview Lab → · Contrast checker → · Palette generator →

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