#8D217D#8D217D

#8D217D is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.8% C 0.174 H 334.9°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#8D217D
RGBrgb(141, 33, 125)
HSLhsl(309, 62%, 34%)
HSVhsv(309, 77%, 55%)
CMYKcmyk(0%, 76.6%, 11.3%, 44.7%)
CIE-LABlab(34.46, 54.07, -27.03)
CIE-LCHlch(34.46, 60.45, 333.43°)
OKLaboklab(45.81% 0.1577 -0.0739)
OKLCHoklch(45.81% 0.174 334.9)
XYZxyz(15.2302, 8.2325, 20.1850)
Luminance0.0823 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D217D #218D31
analogous
#67218D #8D217D #8D2147
triadic
#8D217D #7D8D21 #217D8D
tetradic
#8D217D #8D6721 #218D31 #21478D
square
#8D217D #8D6721 #218D31 #21478D
split-complementary
#8D217D #478D21 #218D67
monochromatic
#2A0A25 #5B1551 #8D217D #BF2DA9 #D652C3

Accessibility & contrast

On white

7.94
#8D217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#8D217D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D217D
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D217D#FFFFFF#000000##FFFFFF
##8D217D1.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20477F
Deuteranopia (green-blind)
#48577A
Tritanopia (blue-blind)
#942A4D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8d217d;
/* rgb */ color: rgb(141, 33, 125);
/* oklch */ color: oklch(45.8% 0.174 334.9);
Tailwind
colors: {
  custom: {
    50: '#b269a3',
    500: '#8d217d',
    950: '#000000',
  },
}
SCSS
$custom: #8d217d;
$custom-light: #b269a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8d217d",
  "rgb": {
    "r": 141,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 308.889,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.45809,
    "c": 0.17414,
    "h": 334.9
  },
  "luminance": 0.08231
}

Semantic roles & 50–950 ramp

primary
#8D217D
secondary
#50BA60
accent
#E55B43
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8D217D

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

Preview Lab → · Contrast checker → · Palette generator →

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