#8D218C#8D218C

#8D218C is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.7% C 0.186 H 328.5°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#8D218C
RGBrgb(141, 33, 140)
HSLhsl(301, 62%, 34%)
HSVhsv(301, 77%, 55%)
CMYKcmyk(0%, 76.6%, 0.7%, 44.7%)
CIE-LABlab(35.29, 56.49, -35.03)
CIE-LCHlch(35.29, 66.47, 328.19°)
OKLaboklab(46.67% 0.1581 -0.0971)
OKLCHoklch(46.67% 0.186 328.5)
XYZxyz(16.2618, 8.6451, 25.6180)
Luminance0.0864 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D218C #218D22
analogous
#58218D #8D218C #8D2156
triadic
#8D218C #8C8D21 #218C8D
tetradic
#8D218C #8D5821 #218D22 #21568D
square
#8D218C #8D5821 #218D22 #21568D
split-complementary
#8D218C #568D21 #218D58
monochromatic
#2A0A2A #5B155B #8D218C #BF2DBD #D652D5

Accessibility & contrast

On white

7.70
#8D218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#8D218C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D218C
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D218C#FFFFFF#000000##FFFFFF
##8D218C1.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#094A8F
Deuteranopia (green-blind)
#405889
Tritanopia (blue-blind)
#923255
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8d218c;
/* rgb */ color: rgb(141, 33, 140);
/* oklch */ color: oklch(46.7% 0.186 328.5);
Tailwind
colors: {
  custom: {
    50: '#b269ae',
    500: '#8d218c',
    950: '#000000',
  },
}
SCSS
$custom: #8d218c;
$custom-light: #b269ae;
$custom-dark: #000000;
JSON
{
  "hex": "#8d218c",
  "rgb": {
    "r": 141,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 300.556,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.46672,
    "c": 0.18555,
    "h": 328.5
  },
  "luminance": 0.08644
}

Semantic roles & 50–950 ramp

primary
#8D218C
secondary
#50BA51
accent
#E54443
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8D218C

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

Preview Lab → · Contrast checker → · Palette generator →

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