#8D21B4#8D21B4

#8D21B4 is a mid, highly saturated purple. Relative luminance 0.100; OKLCH L 49.4% C 0.218 H 314.6°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#8D21B4
RGBrgb(141, 33, 180)
HSLhsl(284, 69%, 42%)
HSVhsv(284, 82%, 71%)
CMYKcmyk(21.7%, 81.7%, 0%, 29.4%)
CIE-LABlab(37.93, 63.79, -54.97)
CIE-LCHlch(37.93, 84.20, 319.25°)
OKLaboklab(49.37% 0.1535 -0.1554)
OKLCHoklch(49.37% 0.218 314.6)
XYZxyz(19.7652, 10.0464, 44.0692)
Luminance0.1005 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D21B4 #48B421
analogous
#4421B4 #8D21B4 #B42192
triadic
#8D21B4 #B48D21 #21B48D
tetradic
#8D21B4 #B44421 #48B421 #2192B4
square
#8D21B4 #B44421 #48B421 #2192B4
split-complementary
#8D21B4 #92B421 #21B444
monochromatic
#3C0E4D #641880 #8D21B4 #AF38DA #C46BE4

Accessibility & contrast

On white

6.98
#8D21B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#8D21B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D21B4
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D21B4#FFFFFF#000000##FFFFFF
##8D21B41.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B8
Deuteranopia (green-blind)
#145CB1
Tritanopia (blue-blind)
#89466C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8d21b4;
/* rgb */ color: rgb(141, 33, 180);
/* oklch */ color: oklch(49.4% 0.218 314.6);
Tailwind
colors: {
  custom: {
    50: '#b36bcb',
    500: '#8d21b4',
    950: '#000000',
  },
}
SCSS
$custom: #8d21b4;
$custom-light: #b36bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#8d21b4",
  "rgb": {
    "r": 141,
    "g": 33,
    "b": 180
  },
  "hsl": {
    "h": 284.082,
    "s": 69.014,
    "l": 41.765
  },
  "oklch": {
    "l": 0.49372,
    "c": 0.21841,
    "h": 314.6
  },
  "luminance": 0.10046
}

Semantic roles & 50–950 ramp

primary
#8D21B4
secondary
#81CA67
accent
#EC3C6B
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#120813
muted
#817A82

Preview Lab

Preview with #8D21B4

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

Preview Lab → · Contrast checker → · Palette generator →

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