#8D217E#8D217E

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

Color values

HEX#8D217E
RGBrgb(141, 33, 126)
HSLhsl(308, 62%, 34%)
HSVhsv(308, 77%, 55%)
CMYKcmyk(0%, 76.6%, 10.6%, 44.7%)
CIE-LABlab(34.51, 54.22, -27.58)
CIE-LCHlch(34.51, 60.83, 333.04°)
OKLaboklab(45.86% 0.1577 -0.0755)
OKLCHoklch(45.86% 0.175 334.4)
XYZxyz(15.2944, 8.2581, 20.5231)
Luminance0.0826 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D217E #218D30
analogous
#66218D #8D217E #8D2148
triadic
#8D217E #7E8D21 #217E8D
tetradic
#8D217E #8D6621 #218D30 #21488D
square
#8D217E #8D6621 #218D30 #21488D
split-complementary
#8D217E #488D21 #218D66
monochromatic
#2A0A25 #5B1552 #8D217E #BF2DAA #D652C4

Accessibility & contrast

On white

7.92
#8D217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8D217E
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D217E#FFFFFF#000000##FFFFFF
##8D217E1.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4781
Deuteranopia (green-blind)
#47577B
Tritanopia (blue-blind)
#942B4D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8d217e;
/* rgb */ color: rgb(141, 33, 126);
/* oklch */ color: oklch(45.9% 0.175 334.4);
Tailwind
colors: {
  custom: {
    50: '#b269a3',
    500: '#8d217e',
    950: '#000000',
  },
}
SCSS
$custom: #8d217e;
$custom-light: #b269a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8d217e",
  "rgb": {
    "r": 141,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 308.333,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.45864,
    "c": 0.17487,
    "h": 334.4
  },
  "luminance": 0.08257
}

Semantic roles & 50–950 ramp

primary
#8D217E
secondary
#50BA5F
accent
#E55943
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8D217E

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

Preview Lab → · Contrast checker → · Palette generator →

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