#8D1B7E#8D1B7E

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

Color values

HEX#8D1B7E
RGBrgb(141, 27, 126)
HSLhsl(308, 68%, 33%)
HSVhsv(308, 81%, 55%)
CMYKcmyk(0%, 80.9%, 10.6%, 44.7%)
CIE-LABlab(33.89, 56.02, -28.56)
CIE-LCHlch(33.89, 62.88, 332.98°)
OKLaboklab(45.41% 0.1631 -0.0783)
OKLCHoklch(45.41% 0.181 334.4)
XYZxyz(15.1425, 7.9543, 20.4725)
Luminance0.0795 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D1B7E #1B8D2A
analogous
#631B8D #8D1B7E #8D1B45
triadic
#8D1B7E #7E8D1B #1B7E8D
tetradic
#8D1B7E #8D631B #1B8D2A #1B458D
square
#8D1B7E #8D631B #1B8D2A #1B458D
split-complementary
#8D1B7E #458D1B #1B8D63
monochromatic
#260722 #5A1150 #8D1B7E #C025AC #DC47C8

Accessibility & contrast

On white

8.11
#8D1B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8D1B7E
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D1B7E#FFFFFF#000000##FFFFFF
##8D1B7E1.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184581
Deuteranopia (green-blind)
#45557B
Tritanopia (blue-blind)
#94274C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8d1b7e;
/* rgb */ color: rgb(141, 27, 126);
/* oklch */ color: oklch(45.4% 0.181 334.4);
Tailwind
colors: {
  custom: {
    50: '#b266a4',
    500: '#8d1b7e',
    950: '#000000',
  },
}
SCSS
$custom: #8d1b7e;
$custom-light: #b266a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8d1b7e",
  "rgb": {
    "r": 141,
    "g": 27,
    "b": 126
  },
  "hsl": {
    "h": 307.895,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.45414,
    "c": 0.18088,
    "h": 334.4
  },
  "luminance": 0.07953
}

Semantic roles & 50–950 ramp

primary
#8D1B7E
secondary
#46BD56
accent
#EB543D
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8D1B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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