#8D1B8A#8D1B8A

#8D1B8A is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.1% C 0.190 H 329.3°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#8D1B8A
RGBrgb(141, 27, 138)
HSLhsl(302, 68%, 33%)
HSVhsv(302, 81%, 55%)
CMYKcmyk(0%, 80.9%, 2.1%, 44.7%)
CIE-LABlab(34.56, 57.92, -34.96)
CIE-LCHlch(34.56, 67.65, 328.89°)
OKLaboklab(46.12% 0.1632 -0.0968)
OKLCHoklch(46.12% 0.19 329.3)
XYZxyz(15.9638, 8.2828, 24.7978)
Luminance0.0828 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D1B8A #1B8D1E
analogous
#571B8D #8D1B8A #8D1B51
triadic
#8D1B8A #8A8D1B #1B8A8D
tetradic
#8D1B8A #8D571B #1B8D1E #1B518D
square
#8D1B8A #8D571B #1B8D1E #1B518D
split-complementary
#8D1B8A #518D1B #1B8D57
monochromatic
#260725 #5A1158 #8D1B8A #C025BC #DC47D8

Accessibility & contrast

On white

7.91
#8D1B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#8D1B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D1B8A
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D1B8A#FFFFFF#000000##FFFFFF
##8D1B8A1.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488D
Deuteranopia (green-blind)
#3F5687
Tritanopia (blue-blind)
#922E53
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8d1b8a;
/* rgb */ color: rgb(141, 27, 138);
/* oklch */ color: oklch(46.1% 0.190 329.3);
Tailwind
colors: {
  custom: {
    50: '#b267ac',
    500: '#8d1b8a',
    950: '#000000',
  },
}
SCSS
$custom: #8d1b8a;
$custom-light: #b267ac;
$custom-dark: #000000;
JSON
{
  "hex": "#8d1b8a",
  "rgb": {
    "r": 141,
    "g": 27,
    "b": 138
  },
  "hsl": {
    "h": 301.579,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.46116,
    "c": 0.18973,
    "h": 329.3
  },
  "luminance": 0.08282
}

Semantic roles & 50–950 ramp

primary
#8D1B8A
secondary
#46BD4A
accent
#EB423D
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8D1B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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