#8E158A#8E158A

#8E158A is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.9% C 0.195 H 329.8°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#8E158A
RGBrgb(142, 21, 138)
HSLhsl(302, 74%, 32%)
HSVhsv(302, 85%, 56%)
CMYKcmyk(0%, 85.2%, 2.8%, 44.3%)
CIE-LABlab(34.24, 59.59, -35.46)
CIE-LCHlch(34.24, 69.35, 329.24°)
OKLaboklab(45.92% 0.1685 -0.0982)
OKLCHoklch(45.92% 0.195 329.8)
XYZxyz(16.0109, 8.1234, 24.7645)
Luminance0.0812 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E158A #158E19
analogous
#55158E #8E158A #8E154E
triadic
#8E158A #8A8E15 #158A8E
tetradic
#8E158A #8E5515 #158E19 #154E8E
square
#8E158A #8E5515 #158E19 #154E8E
split-complementary
#8E158A #4E8E15 #158E55
monochromatic
#230522 #590D56 #8E158A #C31DBE #E23BDD

Accessibility & contrast

On white

8.00
#8E158A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#8E158A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E158A
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E158A#FFFFFF#000000##FFFFFF
##8E158A1.008.002.628.00
#FFFFFF8.001.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468D
Deuteranopia (green-blind)
#3E5687
Tritanopia (blue-blind)
#932A52
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8e158a;
/* rgb */ color: rgb(142, 21, 138);
/* oklch */ color: oklch(45.9% 0.195 329.8);
Tailwind
colors: {
  custom: {
    50: '#b365ac',
    500: '#8e158a',
    950: '#000000',
  },
}
SCSS
$custom: #8e158a;
$custom-light: #b365ac;
$custom-dark: #000000;
JSON
{
  "hex": "#8e158a",
  "rgb": {
    "r": 142,
    "g": 21,
    "b": 138
  },
  "hsl": {
    "h": 301.983,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.45919,
    "c": 0.19498,
    "h": 329.8
  },
  "luminance": 0.08122
}

Semantic roles & 50–950 ramp

primary
#8E158A
secondary
#3DC242
accent
#F13D37
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E158A

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

Preview Lab → · Contrast checker → · Palette generator →

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