#8D1A7C#8D1A7C

#8D1A7C is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.2% C 0.180 H 335.2°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#8D1A7C
RGBrgb(141, 26, 124)
HSLhsl(309, 69%, 33%)
HSVhsv(309, 82%, 55%)
CMYKcmyk(0%, 81.6%, 12.1%, 44.7%)
CIE-LABlab(33.69, 55.99, -27.63)
CIE-LCHlch(33.69, 62.44, 333.74°)
OKLaboklab(45.24% 0.1638 -0.0756)
OKLCHoklch(45.24% 0.18 335.2)
XYZxyz(14.9922, 7.8581, 19.7921)
Luminance0.0786 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D1A7C #1A8D2B
analogous
#651A8D #8D1A7C #8D1A42
triadic
#8D1A7C #7C8D1A #1A7C8D
tetradic
#8D1A7C #8D651A #1A8D2B #1A428D
square
#8D1A7C #8D651A #1A8D2B #1A428D
split-complementary
#8D1A7C #428D1A #1A8D65
monochromatic
#260721 #59104F #8D1A7C #C124A9 #DD45C6

Accessibility & contrast

On white

8.17
#8D1A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#8D1A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D1A7C
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D1A7C#FFFFFF#000000##FFFFFF
##8D1A7C1.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A447F
Deuteranopia (green-blind)
#465579
Tritanopia (blue-blind)
#94254B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8d1a7c;
/* rgb */ color: rgb(141, 26, 124);
/* oklch */ color: oklch(45.2% 0.180 335.2);
Tailwind
colors: {
  custom: {
    50: '#b266a2',
    500: '#8d1a7c',
    950: '#000000',
  },
}
SCSS
$custom: #8d1a7c;
$custom-light: #b266a2;
$custom-dark: #000000;
JSON
{
  "hex": "#8d1a7c",
  "rgb": {
    "r": 141,
    "g": 26,
    "b": 124
  },
  "hsl": {
    "h": 308.87,
    "s": 68.862,
    "l": 32.745
  },
  "oklch": {
    "l": 0.45235,
    "c": 0.18036,
    "h": 335.2
  },
  "luminance": 0.07857
}

Semantic roles & 50–950 ramp

primary
#8D1A7C
secondary
#45BE57
accent
#EC563C
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8D1A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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