#8D158D#8D158D

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

Color values

HEX#8D158D
RGBrgb(141, 21, 141)
HSLhsl(300, 74%, 32%)
HSVhsv(300, 85%, 55%)
CMYKcmyk(0%, 85.1%, 0%, 44.7%)
CIE-LABlab(34.24, 59.88, -37.33)
CIE-LCHlch(34.24, 70.56, 328.06°)
OKLaboklab(45.94% 0.1672 -0.1036)
OKLCHoklch(45.94% 0.197 328.2)
XYZxyz(16.0602, 8.1234, 25.9162)
Luminance0.0812 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D158D #158D15
analogous
#51158D #8D158D #8D1551
triadic
#8D158D #8D8D15 #158D8D
tetradic
#8D158D #8D5115 #158D15 #15518D
square
#8D158D #8D5115 #158D15 #15518D
split-complementary
#8D158D #518D15 #158D51
monochromatic
#220522 #580D58 #8D158D #C21DC2 #E23BE2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8D158D#FFFFFF#000000##FFFFFF
##8D158D1.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)
#004790
Deuteranopia (green-blind)
#3B568A
Tritanopia (blue-blind)
#922C53
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8d158d;
/* rgb */ color: rgb(141, 21, 141);
/* oklch */ color: oklch(45.9% 0.197 328.2);
Tailwind
colors: {
  custom: {
    50: '#b265af',
    500: '#8d158d',
    950: '#000000',
  },
}
SCSS
$custom: #8d158d;
$custom-light: #b265af;
$custom-dark: #000000;
JSON
{
  "hex": "#8d158d",
  "rgb": {
    "r": 141,
    "g": 21,
    "b": 141
  },
  "hsl": {
    "h": 300,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.45943,
    "c": 0.19676,
    "h": 328.2
  },
  "luminance": 0.08122
}

Semantic roles & 50–950 ramp

primary
#8D158D
secondary
#3DC13D
accent
#F13737
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8D158D

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

Preview Lab → · Contrast checker → · Palette generator →

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