#8D217A#8D217A

#8D217A is a mid, vivid pink. Relative luminance 0.082; OKLCH L 45.6% C 0.172 H 336.3°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#8D217A
RGBrgb(141, 33, 122)
HSLhsl(311, 62%, 34%)
HSVhsv(311, 77%, 55%)
CMYKcmyk(0%, 76.6%, 13.5%, 44.7%)
CIE-LABlab(34.31, 53.61, -25.40)
CIE-LCHlch(34.31, 59.32, 334.65°)
OKLaboklab(45.65% 0.1574 -0.0692)
OKLCHoklch(45.65% 0.172 336.3)
XYZxyz(15.0415, 8.1570, 19.1909)
Luminance0.0816 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D217A #218D34
analogous
#6A218D #8D217A #8D2144
triadic
#8D217A #7A8D21 #217A8D
tetradic
#8D217A #8D6A21 #218D34 #21448D
square
#8D217A #8D6A21 #218D34 #21448D
split-complementary
#8D217A #448D21 #218D6A
monochromatic
#2A0A24 #5B154F #8D217A #BF2DA5 #D652BF

Accessibility & contrast

On white

7.98
#8D217A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#8D217A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D217A
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D217A#FFFFFF#000000##FFFFFF
##8D217A1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23467C
Deuteranopia (green-blind)
#495677
Tritanopia (blue-blind)
#95294B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8d217a;
/* rgb */ color: rgb(141, 33, 122);
/* oklch */ color: oklch(45.6% 0.172 336.3);
Tailwind
colors: {
  custom: {
    50: '#b268a0',
    500: '#8d217a',
    950: '#000000',
  },
}
SCSS
$custom: #8d217a;
$custom-light: #b268a0;
$custom-dark: #000000;
JSON
{
  "hex": "#8d217a",
  "rgb": {
    "r": 141,
    "g": 33,
    "b": 122
  },
  "hsl": {
    "h": 310.556,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.45648,
    "c": 0.17197,
    "h": 336.3
  },
  "luminance": 0.08156
}

Semantic roles & 50–950 ramp

primary
#8D217A
secondary
#50BA63
accent
#E55F43
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8D217A

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

Preview Lab → · Contrast checker → · Palette generator →

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