#8E21AE#8E21AE

#8E21AE is a mid, highly saturated purple. Relative luminance 0.099; OKLCH L 49.1% C 0.214 H 316.9°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#8E21AE
RGBrgb(142, 33, 174)
HSLhsl(286, 68%, 41%)
HSVhsv(286, 81%, 68%)
CMYKcmyk(18.4%, 81%, 0%, 31.8%)
CIE-LABlab(37.65, 62.81, -51.83)
CIE-LCHlch(37.65, 81.44, 320.47°)
OKLaboklab(49.08% 0.1559 -0.1461)
OKLCHoklch(49.08% 0.214 316.9)
XYZxyz(19.3380, 9.8953, 40.9276)
Luminance0.0989 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E21AE #41AE21
analogous
#4721AE #8E21AE #AE2187
triadic
#8E21AE #AE8E21 #21AE8E
tetradic
#8E21AE #AE4721 #41AE21 #2187AE
square
#8E21AE #AE4721 #41AE21 #2187AE
split-complementary
#8E21AE #87AE21 #21AE47
monochromatic
#3A0D47 #64177B #8E21AE #B334D8 #C667E2

Accessibility & contrast

On white

7.05
#8E21AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#8E21AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E21AE
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E21AE#FFFFFF#000000##FFFFFF
##8E21AE1.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B2
Deuteranopia (green-blind)
#225CAB
Tritanopia (blue-blind)
#8C4369
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8e21ae;
/* rgb */ color: rgb(142, 33, 174);
/* oklch */ color: oklch(49.1% 0.214 316.9);
Tailwind
colors: {
  custom: {
    50: '#b46bc7',
    500: '#8e21ae',
    950: '#000000',
  },
}
SCSS
$custom: #8e21ae;
$custom-light: #b46bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#8e21ae",
  "rgb": {
    "r": 142,
    "g": 33,
    "b": 174
  },
  "hsl": {
    "h": 286.383,
    "s": 68.116,
    "l": 40.588
  },
  "oklch": {
    "l": 0.49077,
    "c": 0.21369,
    "h": 316.9
  },
  "luminance": 0.09894
}

Semantic roles & 50–950 ramp

primary
#8E21AE
secondary
#7AC863
accent
#EB3D64
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#120713
muted
#817A82

Preview Lab

Preview with #8E21AE

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

Preview Lab → · Contrast checker → · Palette generator →

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