#8D21B1#8D21B1

#8D21B1 is a mid, highly saturated purple. Relative luminance 0.099; OKLCH L 49.2% C 0.216 H 315.5°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#8D21B1
RGBrgb(141, 33, 177)
HSLhsl(285, 69%, 41%)
HSVhsv(285, 81%, 69%)
CMYKcmyk(20.3%, 81.4%, 0%, 30.6%)
CIE-LABlab(37.71, 63.21, -53.54)
CIE-LCHlch(37.71, 82.83, 319.74°)
OKLaboklab(49.15% 0.1541 -0.1512)
OKLCHoklch(49.15% 0.216 315.5)
XYZxyz(19.4629, 9.9255, 42.4770)
Luminance0.0993 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D21B1 #45B121
analogous
#4521B1 #8D21B1 #B1218D
triadic
#8D21B1 #B18D21 #21B18D
tetradic
#8D21B1 #B14521 #45B121 #218DB1
square
#8D21B1 #B14521 #45B121 #218DB1
split-complementary
#8D21B1 #8DB121 #21B145
monochromatic
#3B0E4A #64177D #8D21B1 #B136D9 #C569E3

Accessibility & contrast

On white

7.04
#8D21B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#8D21B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D21B1
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D21B1#FFFFFF#000000##FFFFFF
##8D21B11.007.042.997.04
#FFFFFF7.041.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B5
Deuteranopia (green-blind)
#1B5BAE
Tritanopia (blue-blind)
#8A446A
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8d21b1;
/* rgb */ color: rgb(141, 33, 177);
/* oklch */ color: oklch(49.2% 0.216 315.5);
Tailwind
colors: {
  custom: {
    50: '#b36bc9',
    500: '#8d21b1',
    950: '#000000',
  },
}
SCSS
$custom: #8d21b1;
$custom-light: #b36bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#8d21b1",
  "rgb": {
    "r": 141,
    "g": 33,
    "b": 177
  },
  "hsl": {
    "h": 285,
    "s": 68.571,
    "l": 41.176
  },
  "oklch": {
    "l": 0.49151,
    "c": 0.21587,
    "h": 315.5
  },
  "luminance": 0.09925
}

Semantic roles & 50–950 ramp

primary
#8D21B1
secondary
#7EC965
accent
#EB3C68
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#120713
muted
#817A82

Preview Lab

Preview with #8D21B1

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

Preview Lab → · Contrast checker → · Palette generator →

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