#8D158C#8D158C

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

Color values

HEX#8D158C
RGBrgb(141, 21, 140)
HSLhsl(301, 74%, 32%)
HSVhsv(301, 85%, 55%)
CMYKcmyk(0%, 85.1%, 0.7%, 44.7%)
CIE-LABlab(34.18, 59.72, -36.81)
CIE-LCHlch(34.18, 70.15, 328.35°)
OKLaboklab(45.88% 0.1673 -0.1021)
OKLCHoklch(45.88% 0.196 328.6)
XYZxyz(15.9861, 8.0938, 25.5261)
Luminance0.0809 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D158C #158D16
analogous
#52158D #8D158C #8D1550
triadic
#8D158C #8C8D15 #158C8D
tetradic
#8D158C #8D5215 #158D16 #15508D
square
#8D158C #8D5215 #158D16 #15508D
split-complementary
#8D158C #508D15 #158D52
monochromatic
#220522 #580D57 #8D158C #C21DC1 #E23BE0

Accessibility & contrast

On white

8.02
#8D158C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8D158C
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D158C#FFFFFF#000000##FFFFFF
##8D158C1.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478F
Deuteranopia (green-blind)
#3C5689
Tritanopia (blue-blind)
#922C53
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8d158c;
/* rgb */ color: rgb(141, 21, 140);
/* oklch */ color: oklch(45.9% 0.196 328.6);
Tailwind
colors: {
  custom: {
    50: '#b265ae',
    500: '#8d158c',
    950: '#000000',
  },
}
SCSS
$custom: #8d158c;
$custom-light: #b265ae;
$custom-dark: #000000;
JSON
{
  "hex": "#8d158c",
  "rgb": {
    "r": 141,
    "g": 21,
    "b": 140
  },
  "hsl": {
    "h": 300.5,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.4588,
    "c": 0.19601,
    "h": 328.6
  },
  "luminance": 0.08093
}

Semantic roles & 50–950 ramp

primary
#8D158C
secondary
#3DC13E
accent
#F13937
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8D158C

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

Preview Lab → · Contrast checker → · Palette generator →

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