#8D1A7D#8D1A7D

#8D1A7D is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.3% C 0.181 H 334.8°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#8D1A7D
RGBrgb(141, 26, 125)
HSLhsl(308, 69%, 33%)
HSVhsv(308, 82%, 55%)
CMYKcmyk(0%, 81.6%, 11.3%, 44.7%)
CIE-LABlab(33.74, 56.14, -28.17)
CIE-LCHlch(33.74, 62.81, 333.35°)
OKLaboklab(45.29% 0.1638 -0.0771)
OKLCHoklch(45.29% 0.181 334.8)
XYZxyz(15.0558, 7.8836, 20.1268)
Luminance0.0788 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D1A7D #1A8D2A
analogous
#631A8D #8D1A7D #8D1A43
triadic
#8D1A7D #7D8D1A #1A7D8D
tetradic
#8D1A7D #8D631A #1A8D2A #1A438D
square
#8D1A7D #8D631A #1A8D2A #1A438D
split-complementary
#8D1A7D #438D1A #1A8D63
monochromatic
#260721 #59104F #8D1A7D #C124AB #DD45C8

Accessibility & contrast

On white

8.15
#8D1A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#8D1A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D1A7D
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D1A7D#FFFFFF#000000##FFFFFF
##8D1A7D1.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184580
Deuteranopia (green-blind)
#45557A
Tritanopia (blue-blind)
#94264B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8d1a7d;
/* rgb */ color: rgb(141, 26, 125);
/* oklch */ color: oklch(45.3% 0.181 334.8);
Tailwind
colors: {
  custom: {
    50: '#b266a3',
    500: '#8d1a7d',
    950: '#000000',
  },
}
SCSS
$custom: #8d1a7d;
$custom-light: #b266a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8d1a7d",
  "rgb": {
    "r": 141,
    "g": 26,
    "b": 125
  },
  "hsl": {
    "h": 308.348,
    "s": 68.862,
    "l": 32.745
  },
  "oklch": {
    "l": 0.45291,
    "c": 0.18107,
    "h": 334.8
  },
  "luminance": 0.07882
}

Semantic roles & 50–950 ramp

primary
#8D1A7D
secondary
#45BE56
accent
#EC553C
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8D1A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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