#8D1D7B#8D1D7B

#8D1D7B is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.4% C 0.177 H 335.7°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#8D1D7B
RGBrgb(141, 29, 123)
HSLhsl(310, 66%, 33%)
HSVhsv(310, 79%, 55%)
CMYKcmyk(0%, 79.4%, 12.8%, 44.7%)
CIE-LABlab(33.93, 55.00, -26.62)
CIE-LCHlch(33.93, 61.10, 334.17°)
OKLaboklab(45.39% 0.1612 -0.0727)
OKLCHoklch(45.39% 0.177 335.7)
XYZxyz(14.9993, 7.9729, 19.4840)
Luminance0.0797 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D1D7B #1D8D2F
analogous
#671D8D #8D1D7B #8D1D43
triadic
#8D1D7B #7B8D1D #1D7B8D
tetradic
#8D1D7B #8D671D #1D8D2F #1D438D
square
#8D1D7B #8D671D #1D8D2F #1D438D
split-complementary
#8D1D7B #438D1D #1D8D67
monochromatic
#270822 #5A134F #8D1D7B #C027A7 #DA4BC3

Accessibility & contrast

On white

8.09
#8D1D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8D1D7B
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D1D7B#FFFFFF#000000##FFFFFF
##8D1D7B1.008.092.598.09
#FFFFFF8.091.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E457D
Deuteranopia (green-blind)
#475678
Tritanopia (blue-blind)
#94264B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8d1d7b;
/* rgb */ color: rgb(141, 29, 123);
/* oklch */ color: oklch(45.4% 0.177 335.7);
Tailwind
colors: {
  custom: {
    50: '#b267a1',
    500: '#8d1d7b',
    950: '#000000',
  },
}
SCSS
$custom: #8d1d7b;
$custom-light: #b267a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8d1d7b",
  "rgb": {
    "r": 141,
    "g": 29,
    "b": 123
  },
  "hsl": {
    "h": 309.643,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.4539,
    "c": 0.17683,
    "h": 335.7
  },
  "luminance": 0.07972
}

Semantic roles & 50–950 ramp

primary
#8D1D7B
secondary
#4ABC5C
accent
#E95A3F
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8D1D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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