#8D217F#8D217F

#8D217F is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.9% C 0.176 H 334.0°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#8D217F
RGBrgb(141, 33, 127)
HSLhsl(308, 62%, 34%)
HSVhsv(308, 77%, 55%)
CMYKcmyk(0%, 76.6%, 9.9%, 44.7%)
CIE-LABlab(34.57, 54.38, -28.12)
CIE-LCHlch(34.57, 61.22, 332.66°)
OKLaboklab(45.92% 0.1578 -0.077)
OKLCHoklch(45.92% 0.176 334)
XYZxyz(15.3593, 8.2841, 20.8646)
Luminance0.0828 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D217F #218D2F
analogous
#65218D #8D217F #8D2149
triadic
#8D217F #7F8D21 #217F8D
tetradic
#8D217F #8D6521 #218D2F #21498D
square
#8D217F #8D6521 #218D2F #21498D
split-complementary
#8D217F #498D21 #218D65
monochromatic
#2A0A26 #5B1552 #8D217F #BF2DAC #D652C5

Accessibility & contrast

On white

7.90
#8D217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#8D217F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D217F
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D217F#FFFFFF#000000##FFFFFF
##8D217F1.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4782
Deuteranopia (green-blind)
#47577C
Tritanopia (blue-blind)
#942B4E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8d217f;
/* rgb */ color: rgb(141, 33, 127);
/* oklch */ color: oklch(45.9% 0.176 334.0);
Tailwind
colors: {
  custom: {
    50: '#b269a4',
    500: '#8d217f',
    950: '#000000',
  },
}
SCSS
$custom: #8d217f;
$custom-light: #b269a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8d217f",
  "rgb": {
    "r": 141,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 307.778,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.45919,
    "c": 0.17562,
    "h": 334
  },
  "luminance": 0.08283
}

Semantic roles & 50–950 ramp

primary
#8D217F
secondary
#50BA5E
accent
#E55843
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8D217F

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

Preview Lab → · Contrast checker → · Palette generator →

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