#8D158F#8D158F

#8D158F is a mid, vivid purple. Relative luminance 0.082; OKLCH L 46.1% C 0.198 H 327.4°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#8D158F
RGBrgb(141, 21, 143)
HSLhsl(299, 74%, 32%)
HSVhsv(299, 85%, 56%)
CMYKcmyk(1.4%, 85.3%, 0%, 43.9%)
CIE-LABlab(34.36, 60.20, -38.36)
CIE-LCHlch(34.36, 71.39, 327.49°)
OKLaboklab(46.07% 0.1671 -0.1067)
OKLCHoklch(46.07% 0.198 327.4)
XYZxyz(16.2104, 8.1834, 26.7070)
Luminance0.0818 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D158F #178F15
analogous
#50158F #8D158F #8F1554
triadic
#8D158F #8F8D15 #158F8D
tetradic
#8D158F #8F5015 #178F15 #15548F
square
#8D158F #8F5015 #178F15 #15548F
split-complementary
#8D158F #548F15 #158F50
monochromatic
#240524 #580D5A #8D158F #C21DC4 #E03CE2

Accessibility & contrast

On white

7.97
#8D158F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#8D158F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D158F
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D158F#FFFFFF#000000##FFFFFF
##8D158F1.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004792
Deuteranopia (green-blind)
#3A568C
Tritanopia (blue-blind)
#912D55
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8d158f;
/* rgb */ color: rgb(141, 21, 143);
/* oklch */ color: oklch(46.1% 0.198 327.4);
Tailwind
colors: {
  custom: {
    50: '#b265b0',
    500: '#8d158f',
    950: '#000000',
  },
}
SCSS
$custom: #8d158f;
$custom-light: #b265b0;
$custom-dark: #000000;
JSON
{
  "hex": "#8d158f",
  "rgb": {
    "r": 141,
    "g": 21,
    "b": 143
  },
  "hsl": {
    "h": 299.016,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.4607,
    "c": 0.19824,
    "h": 327.4
  },
  "luminance": 0.08182
}

Semantic roles & 50–950 ramp

primary
#8D158F
secondary
#40C23E
accent
#F1373A
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8D158F

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

Preview Lab → · Contrast checker → · Palette generator →

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