#8A21AE#8A21AE

#8A21AE is a mid, highly saturated purple. Relative luminance 0.095; OKLCH L 48.5% C 0.212 H 315.3°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#8A21AE
RGBrgb(138, 33, 174)
HSLhsl(285, 68%, 41%)
HSVhsv(285, 81%, 68%)
CMYKcmyk(20.7%, 81%, 0%, 31.8%)
CIE-LABlab(37.02, 62.09, -52.89)
CIE-LCHlch(37.02, 81.57, 319.58°)
OKLaboklab(48.51% 0.1509 -0.1494)
OKLCHoklch(48.51% 0.212 315.3)
XYZxyz(18.6638, 9.5477, 40.8959)
Luminance0.0955 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A21AE #45AE21
analogous
#4321AE #8A21AE #AE218B
triadic
#8A21AE #AE8A21 #21AE8A
tetradic
#8A21AE #AE4321 #45AE21 #218BAE
square
#8A21AE #AE4321 #45AE21 #218BAE
split-complementary
#8A21AE #8BAE21 #21AE43
monochromatic
#380D47 #61177B #8A21AE #AE34D8 #C367E2

Accessibility & contrast

On white

7.22
#8A21AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#8A21AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A21AE
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A21AE#FFFFFF#000000##FFFFFF
##8A21AE1.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B2
Deuteranopia (green-blind)
#195AAB
Tritanopia (blue-blind)
#874369
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a21ae;
/* rgb */ color: rgb(138, 33, 174);
/* oklch */ color: oklch(48.5% 0.212 315.3);
Tailwind
colors: {
  custom: {
    50: '#b16ac7',
    500: '#8a21ae',
    950: '#000000',
  },
}
SCSS
$custom: #8a21ae;
$custom-light: #b16ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a21ae",
  "rgb": {
    "r": 138,
    "g": 33,
    "b": 174
  },
  "hsl": {
    "h": 284.681,
    "s": 68.116,
    "l": 40.588
  },
  "oklch": {
    "l": 0.48505,
    "c": 0.21233,
    "h": 315.3
  },
  "luminance": 0.09547
}

Semantic roles & 50–950 ramp

primary
#8A21AE
secondary
#7DC863
accent
#EB3D69
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110713
muted
#807A82

Preview Lab

Preview with #8A21AE

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

Preview Lab → · Contrast checker → · Palette generator →

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