#8D21CA#8D21CA

#8D21CA is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 51.1% C 0.237 H 308.6°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#8D21CA
RGBrgb(141, 33, 202)
HSLhsl(278, 72%, 46%)
HSVhsv(278, 84%, 79%)
CMYKcmyk(30.2%, 83.7%, 0%, 20.8%)
CIE-LABlab(39.61, 68.18, -65.15)
CIE-LCHlch(39.61, 94.30, 316.30°)
OKLaboklab(51.07% 0.1481 -0.1853)
OKLCHoklch(51.07% 0.237 308.6)
XYZxyz(22.1868, 11.0151, 56.8230)
Luminance0.1101 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D21CA #5ECA21
analogous
#3821CA #8D21CA #CA21B2
triadic
#8D21CA #CA8D21 #21CA8D
tetradic
#8D21CA #CA3821 #5ECA21 #21B2CA
square
#8D21CA #CA3821 #5ECA21 #21B2CA
split-complementary
#8D21CA #B2CA21 #21CA38
monochromatic
#441061 #681895 #8D21CA #A947E1 #C27CEA

Accessibility & contrast

On white

6.56
#8D21CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#8D21CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D21CA
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D21CA#FFFFFF#000000##FFFFFF
##8D21CA1.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CE
Deuteranopia (green-blind)
#005EC7
Tritanopia (blue-blind)
#835079
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8d21ca;
/* rgb */ color: rgb(141, 33, 202);
/* oklch */ color: oklch(51.1% 0.237 308.6);
Tailwind
colors: {
  custom: {
    50: '#b46cdb',
    500: '#8d21ca',
    950: '#000000',
  },
}
SCSS
$custom: #8d21ca;
$custom-light: #b46cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#8d21ca",
  "rgb": {
    "r": 141,
    "g": 33,
    "b": 202
  },
  "hsl": {
    "h": 278.343,
    "s": 71.915,
    "l": 46.078
  },
  "oklch": {
    "l": 0.51067,
    "c": 0.23719,
    "h": 308.6
  },
  "luminance": 0.11015
}

Semantic roles & 50–950 ramp

primary
#8D21CA
secondary
#97D275
accent
#EF397B
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120815
muted
#817B83

Preview Lab

Preview with #8D21CA

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

Preview Lab → · Contrast checker → · Palette generator →

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