#8D217B#8D217B

#8D217B is a mid, vivid pink. Relative luminance 0.082; OKLCH L 45.7% C 0.173 H 335.8°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#8D217B
RGBrgb(141, 33, 123)
HSLhsl(310, 62%, 34%)
HSVhsv(310, 77%, 55%)
CMYKcmyk(0%, 76.6%, 12.8%, 44.7%)
CIE-LABlab(34.36, 53.76, -25.94)
CIE-LCHlch(34.36, 59.69, 334.24°)
OKLaboklab(45.7% 0.1575 -0.0708)
OKLCHoklch(45.7% 0.173 335.8)
XYZxyz(15.1037, 8.1819, 19.5189)
Luminance0.0818 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D217B #218D33
analogous
#69218D #8D217B #8D2145
triadic
#8D217B #7B8D21 #217B8D
tetradic
#8D217B #8D6921 #218D33 #21458D
square
#8D217B #8D6921 #218D33 #21458D
split-complementary
#8D217B #458D21 #218D69
monochromatic
#2A0A24 #5B1550 #8D217B #BF2DA6 #D652C0

Accessibility & contrast

On white

7.97
#8D217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#8D217B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D217B
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D217B#FFFFFF#000000##FFFFFF
##8D217B1.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22467D
Deuteranopia (green-blind)
#495778
Tritanopia (blue-blind)
#94294C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8d217b;
/* rgb */ color: rgb(141, 33, 123);
/* oklch */ color: oklch(45.7% 0.173 335.8);
Tailwind
colors: {
  custom: {
    50: '#b268a1',
    500: '#8d217b',
    950: '#000000',
  },
}
SCSS
$custom: #8d217b;
$custom-light: #b268a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8d217b",
  "rgb": {
    "r": 141,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 310,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.45701,
    "c": 0.17269,
    "h": 335.8
  },
  "luminance": 0.0818
}

Semantic roles & 50–950 ramp

primary
#8D217B
secondary
#50BA62
accent
#E55E43
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8D217B

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

Preview Lab → · Contrast checker → · Palette generator →

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