#8D217C#8D217C

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

Color values

HEX#8D217C
RGBrgb(141, 33, 124)
HSLhsl(309, 62%, 34%)
HSVhsv(309, 77%, 55%)
CMYKcmyk(0%, 76.6%, 12.1%, 44.7%)
CIE-LABlab(34.41, 53.91, -26.49)
CIE-LCHlch(34.41, 60.07, 333.83°)
OKLaboklab(45.76% 0.1576 -0.0724)
OKLCHoklch(45.76% 0.173 335.3)
XYZxyz(15.1667, 8.2070, 19.8502)
Luminance0.0821 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D217C #218D32
analogous
#68218D #8D217C #8D2146
triadic
#8D217C #7C8D21 #217C8D
tetradic
#8D217C #8D6821 #218D32 #21468D
square
#8D217C #8D6821 #218D32 #21468D
split-complementary
#8D217C #468D21 #218D68
monochromatic
#2A0A25 #5B1550 #8D217C #BF2DA8 #D652C2

Accessibility & contrast

On white

7.95
#8D217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8D217C
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D217C#FFFFFF#000000##FFFFFF
##8D217C1.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21477E
Deuteranopia (green-blind)
#485779
Tritanopia (blue-blind)
#942A4C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8d217c;
/* rgb */ color: rgb(141, 33, 124);
/* oklch */ color: oklch(45.8% 0.173 335.3);
Tailwind
colors: {
  custom: {
    50: '#b268a2',
    500: '#8d217c',
    950: '#000000',
  },
}
SCSS
$custom: #8d217c;
$custom-light: #b268a2;
$custom-dark: #000000;
JSON
{
  "hex": "#8d217c",
  "rgb": {
    "r": 141,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 309.444,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.45755,
    "c": 0.17341,
    "h": 335.3
  },
  "luminance": 0.08206
}

Semantic roles & 50–950 ramp

primary
#8D217C
secondary
#50BA61
accent
#E55C43
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8D217C

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

Preview Lab → · Contrast checker → · Palette generator →

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