#8D157C#8D157C

#8D157C is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.9% C 0.185 H 335.2°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#8D157C
RGBrgb(141, 21, 124)
HSLhsl(309, 74%, 32%)
HSVhsv(309, 85%, 55%)
CMYKcmyk(0%, 85.1%, 12.1%, 44.7%)
CIE-LABlab(33.26, 57.24, -28.31)
CIE-LCHlch(33.26, 63.85, 333.69°)
OKLaboklab(44.93% 0.1675 -0.0775)
OKLCHoklch(44.93% 0.185 335.2)
XYZxyz(14.8910, 7.6557, 19.7583)
Luminance0.0765 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D157C #158D26
analogous
#62158D #8D157C #8D1540
triadic
#8D157C #7C8D15 #157C8D
tetradic
#8D157C #8D6215 #158D26 #15408D
square
#8D157C #8D6215 #158D26 #15408D
split-complementary
#8D157C #408D15 #158D62
monochromatic
#22051E #580D4D #8D157C #C21DAB #E23BCA

Accessibility & contrast

On white

8.30
#8D157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8D157C
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D157C#FFFFFF#000000##FFFFFF
##8D157C1.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14437F
Deuteranopia (green-blind)
#445479
Tritanopia (blue-blind)
#94224A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8d157c;
/* rgb */ color: rgb(141, 21, 124);
/* oklch */ color: oklch(44.9% 0.185 335.2);
Tailwind
colors: {
  custom: {
    50: '#b264a2',
    500: '#8d157c',
    950: '#000000',
  },
}
SCSS
$custom: #8d157c;
$custom-light: #b264a2;
$custom-dark: #000000;
JSON
{
  "hex": "#8d157c",
  "rgb": {
    "r": 141,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 308.5,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.44927,
    "c": 0.18453,
    "h": 335.2
  },
  "luminance": 0.07654
}

Semantic roles & 50–950 ramp

primary
#8D157C
secondary
#3DC150
accent
#F15137
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8D157C

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

Preview Lab → · Contrast checker → · Palette generator →

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