#8D21C2#8D21C2

#8D21C2 is a mid, highly saturated purple. Relative luminance 0.106; OKLCH L 50.4% C 0.230 H 310.7°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#8D21C2
RGBrgb(141, 33, 194)
HSLhsl(280, 71%, 45%)
HSVhsv(280, 83%, 76%)
CMYKcmyk(27.3%, 83%, 0%, 23.9%)
CIE-LABlab(38.98, 66.56, -61.50)
CIE-LCHlch(38.98, 90.63, 317.26°)
OKLaboklab(50.43% 0.1502 -0.1746)
OKLCHoklch(50.43% 0.23 310.7)
XYZxyz(21.2641, 10.6460, 51.9632)
Luminance0.1065 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D21C2 #56C221
analogous
#3C21C2 #8D21C2 #C221A7
triadic
#8D21C2 #C28D21 #21C28D
tetradic
#8D21C2 #C23C21 #56C221 #21A7C2
square
#8D21C2 #C23C21 #56C221 #21A7C2
split-complementary
#8D21C2 #A7C221 #21C23C
monochromatic
#410F59 #67188E #8D21C2 #AB41DF #C276E8

Accessibility & contrast

On white

6.71
#8D21C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#8D21C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D21C2
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D21C2#FFFFFF#000000##FFFFFF
##8D21C21.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C6
Deuteranopia (green-blind)
#005DBF
Tritanopia (blue-blind)
#864C74
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8d21c2;
/* rgb */ color: rgb(141, 33, 194);
/* oklch */ color: oklch(50.4% 0.230 310.7);
Tailwind
colors: {
  custom: {
    50: '#b46cd5',
    500: '#8d21c2',
    950: '#000000',
  },
}
SCSS
$custom: #8d21c2;
$custom-light: #b46cd5;
$custom-dark: #000000;
JSON
{
  "hex": "#8d21c2",
  "rgb": {
    "r": 141,
    "g": 33,
    "b": 194
  },
  "hsl": {
    "h": 280.248,
    "s": 70.925,
    "l": 44.51
  },
  "oklch": {
    "l": 0.50435,
    "c": 0.23032,
    "h": 310.7
  },
  "luminance": 0.10645
}

Semantic roles & 50–950 ramp

primary
#8D21C2
secondary
#8FCF70
accent
#EE3A75
background
#FBF6FD
surface
#F6ECFA
border
#D0C7D3
text
#120814
muted
#817A83

Preview Lab

Preview with #8D21C2

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

Preview Lab → · Contrast checker → · Palette generator →

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