#8D157B#8D157B

#8D157B is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.9% C 0.184 H 335.6°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#8D157B
RGBrgb(141, 21, 123)
HSLhsl(309, 74%, 32%)
HSVhsv(309, 85%, 55%)
CMYKcmyk(0%, 85.1%, 12.8%, 44.7%)
CIE-LABlab(33.20, 57.09, -27.76)
CIE-LCHlch(33.20, 63.48, 334.07°)
OKLaboklab(44.87% 0.1674 -0.0759)
OKLCHoklch(44.87% 0.184 335.6)
XYZxyz(14.8281, 7.6305, 19.4270)
Luminance0.0763 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D157B #158D27
analogous
#63158D #8D157B #8D153F
triadic
#8D157B #7B8D15 #157B8D
tetradic
#8D157B #8D6315 #158D27 #153F8D
square
#8D157B #8D6315 #158D27 #153F8D
split-complementary
#8D157B #3F8D15 #158D63
monochromatic
#22051E #580D4D #8D157B #C21DA9 #E23BC9

Accessibility & contrast

On white

8.31
#8D157B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#8D157B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D157B
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D157B#FFFFFF#000000##FFFFFF
##8D157B1.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16437E
Deuteranopia (green-blind)
#455478
Tritanopia (blue-blind)
#952149
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8d157b;
/* rgb */ color: rgb(141, 21, 123);
/* oklch */ color: oklch(44.9% 0.184 335.6);
Tailwind
colors: {
  custom: {
    50: '#b264a1',
    500: '#8d157b',
    950: '#000000',
  },
}
SCSS
$custom: #8d157b;
$custom-light: #b264a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8d157b",
  "rgb": {
    "r": 141,
    "g": 21,
    "b": 123
  },
  "hsl": {
    "h": 309,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.44871,
    "c": 0.18384,
    "h": 335.6
  },
  "luminance": 0.07629
}

Semantic roles & 50–950 ramp

primary
#8D157B
secondary
#3DC151
accent
#F15337
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060F
muted
#807A7E

Preview Lab

Preview with #8D157B

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

Preview Lab → · Contrast checker → · Palette generator →

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