#8D21A6#8D21A6

#8D21A6 is a mid, highly saturated purple. Relative luminance 0.095; OKLCH L 48.4% C 0.207 H 319.0°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#8D21A6
RGBrgb(141, 33, 166)
HSLhsl(289, 67%, 39%)
HSVhsv(289, 80%, 65%)
CMYKcmyk(15.1%, 80.1%, 0%, 34.9%)
CIE-LABlab(36.94, 61.12, -48.21)
CIE-LCHlch(36.94, 77.84, 321.73°)
OKLaboklab(48.37% 0.156 -0.1355)
OKLCHoklch(48.37% 0.207 319)
XYZxyz(18.4104, 9.5045, 36.9338)
Luminance0.0950 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D21A6 #3AA621
analogous
#4B21A6 #8D21A6 #A6217D
triadic
#8D21A6 #A68D21 #21A68D
tetradic
#8D21A6 #A64B21 #3AA621 #217DA6
square
#8D21A6 #A64B21 #3AA621 #217DA6
split-complementary
#8D21A6 #7DA621 #21A64B
monochromatic
#360D40 #621773 #8D21A6 #B62FD6 #C862E0

Accessibility & contrast

On white

7.24
#8D21A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#8D21A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D21A6
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D21A6#FFFFFF#000000##FFFFFF
##8D21A61.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AA
Deuteranopia (green-blind)
#2B5AA3
Tritanopia (blue-blind)
#8D3F64
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8d21a6;
/* rgb */ color: rgb(141, 33, 166);
/* oklch */ color: oklch(48.4% 0.207 319.0);
Tailwind
colors: {
  custom: {
    50: '#b36ac1',
    500: '#8d21a6',
    950: '#000000',
  },
}
SCSS
$custom: #8d21a6;
$custom-light: #b36ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#8d21a6",
  "rgb": {
    "r": 141,
    "g": 33,
    "b": 166
  },
  "hsl": {
    "h": 288.722,
    "s": 66.834,
    "l": 39.02
  },
  "oklch": {
    "l": 0.48366,
    "c": 0.20665,
    "h": 319
  },
  "luminance": 0.09504
}

Semantic roles & 50–950 ramp

primary
#8D21A6
secondary
#71C55E
accent
#EA3E5E
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110712
muted
#807A81

Preview Lab

Preview with #8D21A6

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

Preview Lab → · Contrast checker → · Palette generator →

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