#8021AA#8021AA

#8021AA is a mid, highly saturated purple. Relative luminance 0.086; OKLCH L 46.8% C 0.206 H 312.4°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#8021AA
RGBrgb(128, 33, 170)
HSLhsl(282, 67%, 40%)
HSVhsv(282, 81%, 67%)
CMYKcmyk(24.7%, 80.6%, 0%, 33.3%)
CIE-LABlab(35.16, 59.52, -53.58)
CIE-LCHlch(35.16, 80.09, 318.01°)
OKLaboklab(46.8% 0.1388 -0.1517)
OKLCHoklch(46.8% 0.206 312.4)
XYZxyz(16.7003, 8.5797, 38.7987)
Luminance0.0858 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8021AA #4BAA21
analogous
#3C21AA #8021AA #AA2190
triadic
#8021AA #AA8021 #21AA80
tetradic
#8021AA #AA3C21 #4BAA21 #2190AA
square
#8021AA #AA3C21 #4BAA21 #2190AA
split-complementary
#8021AA #90AA21 #21AA3C
monochromatic
#330D43 #591777 #8021AA #A431D7 #BB64E1

Accessibility & contrast

On white

7.73
#8021AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#8021AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8021AA
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8021AA#FFFFFF#000000##FFFFFF
##8021AA1.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAE
Deuteranopia (green-blind)
#0255A7
Tritanopia (blue-blind)
#7B4366
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8021aa;
/* rgb */ color: rgb(128, 33, 170);
/* oklch */ color: oklch(46.8% 0.206 312.4);
Tailwind
colors: {
  custom: {
    50: '#aa69c4',
    500: '#8021aa',
    950: '#000000',
  },
}
SCSS
$custom: #8021aa;
$custom-light: #aa69c4;
$custom-dark: #000000;
JSON
{
  "hex": "#8021aa",
  "rgb": {
    "r": 128,
    "g": 33,
    "b": 170
  },
  "hsl": {
    "h": 281.606,
    "s": 67.488,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46798,
    "c": 0.20564,
    "h": 312.4
  },
  "luminance": 0.08579
}

Semantic roles & 50–950 ramp

primary
#8021AA
secondary
#80C661
accent
#EA3D72
background
#FAF6FC
surface
#F5EBF8
border
#CFC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #8021AA

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

Preview Lab → · Contrast checker → · Palette generator →

#8021AA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva