#8D218E#8D218E

#8D218E is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.8% C 0.187 H 327.7°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#8D218E
RGBrgb(141, 33, 142)
HSLhsl(299, 62%, 34%)
HSVhsv(299, 77%, 56%)
CMYKcmyk(0.7%, 76.8%, 0%, 44.3%)
CIE-LABlab(35.41, 56.83, -36.08)
CIE-LCHlch(35.41, 67.31, 327.59°)
OKLaboklab(46.79% 0.1581 -0.1001)
OKLCHoklch(46.79% 0.187 327.7)
XYZxyz(16.4106, 8.7046, 26.4018)
Luminance0.0870 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D218E #228E21
analogous
#57218E #8D218E #8E2158
triadic
#8D218E #8E8D21 #218E8D
tetradic
#8D218E #8E5721 #228E21 #21588E
square
#8D218E #8E5721 #228E21 #21588E
split-complementary
#8D218E #588E21 #218E57
monochromatic
#2A0A2B #5C155C #8D218E #BE2DC0 #D652D7

Accessibility & contrast

On white

7.66
#8D218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#8D218E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D218E
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D218E#FFFFFF#000000##FFFFFF
##8D218E1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044A91
Deuteranopia (green-blind)
#3F588B
Tritanopia (blue-blind)
#913356
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8d218e;
/* rgb */ color: rgb(141, 33, 142);
/* oklch */ color: oklch(46.8% 0.187 327.7);
Tailwind
colors: {
  custom: {
    50: '#b269af',
    500: '#8d218e',
    950: '#000000',
  },
}
SCSS
$custom: #8d218e;
$custom-light: #b269af;
$custom-dark: #000000;
JSON
{
  "hex": "#8d218e",
  "rgb": {
    "r": 141,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 299.45,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.46794,
    "c": 0.18712,
    "h": 327.7
  },
  "luminance": 0.08703
}

Semantic roles & 50–950 ramp

primary
#8D218E
secondary
#51BA50
accent
#E54244
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8D218E

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

Preview Lab → · Contrast checker → · Palette generator →

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