#8D157F#8D157F

#8D157F is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.1% C 0.187 H 333.9°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#8D157F
RGBrgb(141, 21, 127)
HSLhsl(307, 74%, 32%)
HSVhsv(307, 85%, 55%)
CMYKcmyk(0%, 85.1%, 9.9%, 44.7%)
CIE-LABlab(33.42, 57.69, -29.93)
CIE-LCHlch(33.42, 64.99, 332.58°)
OKLaboklab(45.1% 0.1676 -0.0822)
OKLCHoklch(45.1% 0.187 333.9)
XYZxyz(15.0836, 7.7327, 20.7727)
Luminance0.0773 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D157F #158D23
analogous
#5F158D #8D157F #8D1543
triadic
#8D157F #7F8D15 #157F8D
tetradic
#8D157F #8D5F15 #158D23 #15438D
square
#8D157F #8D5F15 #158D23 #15438D
split-complementary
#8D157F #438D15 #158D5F
monochromatic
#22051F #580D4F #8D157F #C21DAF #E23BCE

Accessibility & contrast

On white

8.25
#8D157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#8D157F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D157F
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D157F#FFFFFF#000000##FFFFFF
##8D157F1.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4482
Deuteranopia (green-blind)
#43547C
Tritanopia (blue-blind)
#94244B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8d157f;
/* rgb */ color: rgb(141, 21, 127);
/* oklch */ color: oklch(45.1% 0.187 333.9);
Tailwind
colors: {
  custom: {
    50: '#b265a4',
    500: '#8d157f',
    950: '#000000',
  },
}
SCSS
$custom: #8d157f;
$custom-light: #b265a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8d157f",
  "rgb": {
    "r": 141,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 307,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.45098,
    "c": 0.18662,
    "h": 333.9
  },
  "luminance": 0.07731
}

Semantic roles & 50–950 ramp

primary
#8D157F
secondary
#3DC14C
accent
#F14D37
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8D157F

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

Preview Lab → · Contrast checker → · Palette generator →

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