#8E158F#8E158F

#8E158F is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.2% C 0.199 H 327.8°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#8E158F
RGBrgb(142, 21, 143)
HSLhsl(300, 74%, 32%)
HSVhsv(300, 85%, 56%)
CMYKcmyk(0.7%, 85.3%, 0%, 43.9%)
CIE-LABlab(34.54, 60.40, -38.07)
CIE-LCHlch(34.54, 71.39, 327.78°)
OKLaboklab(46.23% 0.1682 -0.1058)
OKLCHoklch(46.23% 0.199 327.8)
XYZxyz(16.3812, 8.2715, 26.7151)
Luminance0.0827 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E158F #168F15
analogous
#51158F #8E158F #8F1553
triadic
#8E158F #8F8E15 #158F8E
tetradic
#8E158F #8F5115 #168F15 #15538F
square
#8E158F #8F5115 #168F15 #15538F
split-complementary
#8E158F #538F15 #158F51
monochromatic
#240524 #590D5A #8E158F #C31DC4 #E13CE2

Accessibility & contrast

On white

7.91
#8E158F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#8E158F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E158F
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E158F#FFFFFF#000000##FFFFFF
##8E158F1.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004892
Deuteranopia (green-blind)
#3B568C
Tritanopia (blue-blind)
#932D55
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8e158f;
/* rgb */ color: rgb(142, 21, 143);
/* oklch */ color: oklch(46.2% 0.199 327.8);
Tailwind
colors: {
  custom: {
    50: '#b366b0',
    500: '#8e158f',
    950: '#000000',
  },
}
SCSS
$custom: #8e158f;
$custom-light: #b366b0;
$custom-dark: #000000;
JSON
{
  "hex": "#8e158f",
  "rgb": {
    "r": 142,
    "g": 21,
    "b": 143
  },
  "hsl": {
    "h": 299.508,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.46231,
    "c": 0.19867,
    "h": 327.8
  },
  "luminance": 0.0827
}

Semantic roles & 50–950 ramp

primary
#8E158F
secondary
#3FC23E
accent
#F13738
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E158F

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

Preview Lab → · Contrast checker → · Palette generator →

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