#8D1B7D#8D1B7D

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

Color values

HEX#8D1B7D
RGBrgb(141, 27, 125)
HSLhsl(308, 68%, 33%)
HSVhsv(308, 81%, 55%)
CMYKcmyk(0%, 80.9%, 11.3%, 44.7%)
CIE-LABlab(33.83, 55.87, -28.02)
CIE-LCHlch(33.83, 62.50, 333.36°)
OKLaboklab(45.36% 0.163 -0.0767)
OKLCHoklch(45.36% 0.18 334.8)
XYZxyz(15.0783, 7.9286, 20.1343)
Luminance0.0793 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D1B7D #1B8D2B
analogous
#641B8D #8D1B7D #8D1B44
triadic
#8D1B7D #7D8D1B #1B7D8D
tetradic
#8D1B7D #8D641B #1B8D2B #1B448D
square
#8D1B7D #8D641B #1B8D2B #1B448D
split-complementary
#8D1B7D #448D1B #1B8D64
monochromatic
#260722 #5A114F #8D1B7D #C025AB #DC47C7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8D1B7D#FFFFFF#000000##FFFFFF
##8D1B7D1.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)
#1A4580
Deuteranopia (green-blind)
#46557A
Tritanopia (blue-blind)
#94264B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8d1b7d;
/* rgb */ color: rgb(141, 27, 125);
/* oklch */ color: oklch(45.4% 0.180 334.8);
Tailwind
colors: {
  custom: {
    50: '#b266a3',
    500: '#8d1b7d',
    950: '#000000',
  },
}
SCSS
$custom: #8d1b7d;
$custom-light: #b266a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8d1b7d",
  "rgb": {
    "r": 141,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 308.421,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.45358,
    "c": 0.18017,
    "h": 334.8
  },
  "luminance": 0.07927
}

Semantic roles & 50–950 ramp

primary
#8D1B7D
secondary
#46BD57
accent
#EB553D
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8D1B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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