#8D21A4#8D21A4

#8D21A4 is a mid, highly saturated purple. Relative luminance 0.094; OKLCH L 48.2% C 0.205 H 319.7°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#8D21A4
RGBrgb(141, 33, 164)
HSLhsl(289, 66%, 39%)
HSVhsv(289, 80%, 64%)
CMYKcmyk(14%, 79.9%, 0%, 35.7%)
CIE-LABlab(36.80, 60.74, -47.23)
CIE-LCHlch(36.80, 76.94, 322.14°)
OKLaboklab(48.23% 0.1563 -0.1327)
OKLCHoklch(48.23% 0.205 319.7)
XYZxyz(18.2283, 9.4317, 35.9751)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D21A4 #38A421
analogous
#4C21A4 #8D21A4 #A42179
triadic
#8D21A4 #A48D21 #21A48D
tetradic
#8D21A4 #A44C21 #38A421 #2179A4
square
#8D21A4 #A44C21 #38A421 #2179A4
split-complementary
#8D21A4 #79A421 #21A44C
monochromatic
#350C3E #611771 #8D21A4 #B72DD5 #C960DF

Accessibility & contrast

On white

7.28
#8D21A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#8D21A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D21A4
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D21A4#FFFFFF#000000##FFFFFF
##8D21A41.007.282.897.28
#FFFFFF7.281.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A7
Deuteranopia (green-blind)
#2D5AA1
Tritanopia (blue-blind)
#8D3E63
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8d21a4;
/* rgb */ color: rgb(141, 33, 164);
/* oklch */ color: oklch(48.2% 0.205 319.7);
Tailwind
colors: {
  custom: {
    50: '#b26ac0',
    500: '#8d21a4',
    950: '#000000',
  },
}
SCSS
$custom: #8d21a4;
$custom-light: #b26ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#8d21a4",
  "rgb": {
    "r": 141,
    "g": 33,
    "b": 164
  },
  "hsl": {
    "h": 289.466,
    "s": 66.497,
    "l": 38.627
  },
  "oklch": {
    "l": 0.48227,
    "c": 0.20499,
    "h": 319.7
  },
  "luminance": 0.09431
}

Semantic roles & 50–950 ramp

primary
#8D21A4
secondary
#6FC45D
accent
#E93E5C
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8D21A4

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

Preview Lab → · Contrast checker → · Palette generator →

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