#8E158B#8E158B

#8E158B is a mid, vivid purple. Relative luminance 0.082; OKLCH L 46.0% C 0.196 H 329.4°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#8E158B
RGBrgb(142, 21, 139)
HSLhsl(301, 74%, 32%)
HSVhsv(301, 85%, 56%)
CMYKcmyk(0%, 85.2%, 2.1%, 44.3%)
CIE-LABlab(34.30, 59.75, -35.99)
CIE-LCHlch(34.30, 69.75, 328.94°)
OKLaboklab(45.98% 0.1684 -0.0997)
OKLCHoklch(45.98% 0.196 329.4)
XYZxyz(16.0836, 8.1525, 25.1476)
Luminance0.0815 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E158B #158E18
analogous
#55158E #8E158B #8E154E
triadic
#8E158B #8B8E15 #158B8E
tetradic
#8E158B #8E5515 #158E18 #154E8E
square
#8E158B #8E5515 #158E18 #154E8E
split-complementary
#8E158B #4E8E15 #158E55
monochromatic
#230523 #590D57 #8E158B #C31DBF #E23BDE

Accessibility & contrast

On white

7.98
#8E158B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#8E158B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E158B
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E158B#FFFFFF#000000##FFFFFF
##8E158B1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478E
Deuteranopia (green-blind)
#3D5688
Tritanopia (blue-blind)
#932B52
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8e158b;
/* rgb */ color: rgb(142, 21, 139);
/* oklch */ color: oklch(46.0% 0.196 329.4);
Tailwind
colors: {
  custom: {
    50: '#b365ad',
    500: '#8e158b',
    950: '#000000',
  },
}
SCSS
$custom: #8e158b;
$custom-light: #b365ad;
$custom-dark: #000000;
JSON
{
  "hex": "#8e158b",
  "rgb": {
    "r": 142,
    "g": 21,
    "b": 139
  },
  "hsl": {
    "h": 301.488,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.4598,
    "c": 0.19572,
    "h": 329.4
  },
  "luminance": 0.08151
}

Semantic roles & 50–950 ramp

primary
#8E158B
secondary
#3DC240
accent
#F13C37
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E158B

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

Preview Lab → · Contrast checker → · Palette generator →

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