#8D1A7F#8D1A7F

#8D1A7F is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.4% C 0.182 H 333.9°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#8D1A7F
RGBrgb(141, 26, 127)
HSLhsl(307, 69%, 33%)
HSVhsv(307, 82%, 55%)
CMYKcmyk(0%, 81.6%, 9.9%, 44.7%)
CIE-LABlab(33.85, 56.45, -29.25)
CIE-LCHlch(33.85, 63.58, 332.60°)
OKLaboklab(45.4% 0.1639 -0.0803)
OKLCHoklch(45.4% 0.183 333.9)
XYZxyz(15.1848, 7.9352, 20.8065)
Luminance0.0793 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D1A7F #1A8D28
analogous
#611A8D #8D1A7F #8D1A46
triadic
#8D1A7F #7F8D1A #1A7F8D
tetradic
#8D1A7F #8D611A #1A8D28 #1A468D
square
#8D1A7F #8D611A #1A8D28 #1A468D
split-complementary
#8D1A7F #468D1A #1A8D61
monochromatic
#260722 #591050 #8D1A7F #C124AE #DD45CA

Accessibility & contrast

On white

8.12
#8D1A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8D1A7F
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D1A7F#FFFFFF#000000##FFFFFF
##8D1A7F1.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164582
Deuteranopia (green-blind)
#44557C
Tritanopia (blue-blind)
#94274C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8d1a7f;
/* rgb */ color: rgb(141, 26, 127);
/* oklch */ color: oklch(45.4% 0.182 333.9);
Tailwind
colors: {
  custom: {
    50: '#b266a4',
    500: '#8d1a7f',
    950: '#000000',
  },
}
SCSS
$custom: #8d1a7f;
$custom-light: #b266a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8d1a7f",
  "rgb": {
    "r": 141,
    "g": 26,
    "b": 127
  },
  "hsl": {
    "h": 307.304,
    "s": 68.862,
    "l": 32.745
  },
  "oklch": {
    "l": 0.45403,
    "c": 0.1825,
    "h": 333.9
  },
  "luminance": 0.07934
}

Semantic roles & 50–950 ramp

primary
#8D1A7F
secondary
#45BE54
accent
#EC513C
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8D1A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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