#8D157E#8D157E

#8D157E is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.0% C 0.186 H 334.3°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#8D157E
RGBrgb(141, 21, 126)
HSLhsl(308, 74%, 32%)
HSVhsv(308, 85%, 55%)
CMYKcmyk(0%, 85.1%, 10.6%, 44.7%)
CIE-LABlab(33.36, 57.53, -29.39)
CIE-LCHlch(33.36, 64.61, 332.94°)
OKLaboklab(45.04% 0.1675 -0.0806)
OKLCHoklch(45.04% 0.186 334.3)
XYZxyz(15.0187, 7.7068, 20.4312)
Luminance0.0770 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D157E #158D24
analogous
#60158D #8D157E #8D1542
triadic
#8D157E #7E8D15 #157E8D
tetradic
#8D157E #8D6015 #158D24 #15428D
square
#8D157E #8D6015 #158D24 #15428D
split-complementary
#8D157E #428D15 #158D60
monochromatic
#22051F #580D4E #8D157E #C21DAE #E23BCD

Accessibility & contrast

On white

8.26
#8D157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#8D157E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D157E
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D157E#FFFFFF#000000##FFFFFF
##8D157E1.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114481
Deuteranopia (green-blind)
#43547B
Tritanopia (blue-blind)
#94234B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8d157e;
/* rgb */ color: rgb(141, 21, 126);
/* oklch */ color: oklch(45.0% 0.186 334.3);
Tailwind
colors: {
  custom: {
    50: '#b265a4',
    500: '#8d157e',
    950: '#000000',
  },
}
SCSS
$custom: #8d157e;
$custom-light: #b265a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8d157e",
  "rgb": {
    "r": 141,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 307.5,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.45041,
    "c": 0.18592,
    "h": 334.3
  },
  "luminance": 0.07705
}

Semantic roles & 50–950 ramp

primary
#8D157E
secondary
#3DC14E
accent
#F14E37
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8D157E

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

Preview Lab → · Contrast checker → · Palette generator →

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