#8D21B3#8D21B3

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

Color values

HEX#8D21B3
RGBrgb(141, 33, 179)
HSLhsl(284, 69%, 42%)
HSVhsv(284, 82%, 70%)
CMYKcmyk(21.2%, 81.6%, 0%, 29.8%)
CIE-LABlab(37.85, 63.59, -54.49)
CIE-LCHlch(37.85, 83.75, 319.41°)
OKLaboklab(49.3% 0.1537 -0.154)
OKLCHoklch(49.3% 0.218 314.9)
XYZxyz(19.6637, 10.0058, 43.5346)
Luminance0.1001 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D21B3 #47B321
analogous
#4421B3 #8D21B3 #B32190
triadic
#8D21B3 #B38D21 #21B38D
tetradic
#8D21B3 #B34421 #47B321 #2190B3
square
#8D21B3 #B34421 #47B321 #2190B3
split-complementary
#8D21B3 #90B321 #21B344
monochromatic
#3C0E4C #64177F #8D21B3 #B037DA #C46BE4

Accessibility & contrast

On white

7.00
#8D21B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#8D21B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D21B3
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D21B3#FFFFFF#000000##FFFFFF
##8D21B31.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B7
Deuteranopia (green-blind)
#165CB0
Tritanopia (blue-blind)
#8A456C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8d21b3;
/* rgb */ color: rgb(141, 33, 179);
/* oklch */ color: oklch(49.3% 0.218 314.9);
Tailwind
colors: {
  custom: {
    50: '#b36bcb',
    500: '#8d21b3',
    950: '#000000',
  },
}
SCSS
$custom: #8d21b3;
$custom-light: #b36bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#8d21b3",
  "rgb": {
    "r": 141,
    "g": 33,
    "b": 179
  },
  "hsl": {
    "h": 284.384,
    "s": 68.868,
    "l": 41.569
  },
  "oklch": {
    "l": 0.49298,
    "c": 0.21756,
    "h": 314.9
  },
  "luminance": 0.10005
}

Semantic roles & 50–950 ramp

primary
#8D21B3
secondary
#80CA66
accent
#EC3C6A
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#120713
muted
#817A82

Preview Lab

Preview with #8D21B3

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

Preview Lab → · Contrast checker → · Palette generator →

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