#8D1587#8D1587

#8D1587 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.6% C 0.192 H 330.6°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#8D1587
RGBrgb(141, 21, 135)
HSLhsl(303, 74%, 32%)
HSVhsv(303, 85%, 55%)
CMYKcmyk(0%, 85.1%, 4.3%, 44.7%)
CIE-LABlab(33.88, 58.92, -34.19)
CIE-LCHlch(33.88, 68.12, 329.87°)
OKLaboklab(45.57% 0.1675 -0.0945)
OKLCHoklch(45.57% 0.192 330.6)
XYZxyz(15.6258, 7.9496, 23.6284)
Luminance0.0795 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D1587 #158D1B
analogous
#57158D #8D1587 #8D154B
triadic
#8D1587 #878D15 #15878D
tetradic
#8D1587 #8D5715 #158D1B #154B8D
square
#8D1587 #8D5715 #158D1B #154B8D
split-complementary
#8D1587 #4B8D15 #158D57
monochromatic
#220521 #580D54 #8D1587 #C21DBA #E23BD9

Accessibility & contrast

On white

8.11
#8D1587 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#8D1587 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D1587
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D1587#FFFFFF#000000##FFFFFF
##8D15871.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468A
Deuteranopia (green-blind)
#3F5584
Tritanopia (blue-blind)
#932950
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8d1587;
/* rgb */ color: rgb(141, 21, 135);
/* oklch */ color: oklch(45.6% 0.192 330.6);
Tailwind
colors: {
  custom: {
    50: '#b265aa',
    500: '#8d1587',
    950: '#000000',
  },
}
SCSS
$custom: #8d1587;
$custom-light: #b265aa;
$custom-dark: #000000;
JSON
{
  "hex": "#8d1587",
  "rgb": {
    "r": 141,
    "g": 21,
    "b": 135
  },
  "hsl": {
    "h": 303,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.45571,
    "c": 0.19235,
    "h": 330.6
  },
  "luminance": 0.07948
}

Semantic roles & 50–950 ramp

primary
#8D1587
secondary
#3DC144
accent
#F14037
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110610
muted
#807A7F

Preview Lab

Preview with #8D1587

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

Preview Lab → · Contrast checker → · Palette generator →

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