#8021A2#8021A2

#8021A2 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.2% C 0.199 H 315.0°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#8021A2
RGBrgb(128, 33, 162)
HSLhsl(284, 66%, 38%)
HSVhsv(284, 80%, 64%)
CMYKcmyk(21%, 79.6%, 0%, 36.5%)
CIE-LABlab(34.57, 57.90, -49.72)
CIE-LCHlch(34.57, 76.32, 319.35°)
OKLaboklab(46.2% 0.1404 -0.1404)
OKLCHoklch(46.2% 0.199 315)
XYZxyz(15.9665, 8.2861, 34.9337)
Luminance0.0829 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8021A2 #43A221
analogous
#3F21A2 #8021A2 #A22183
triadic
#8021A2 #A28021 #21A280
tetradic
#8021A2 #A23F21 #43A221 #2183A2
square
#8021A2 #A23F21 #43A221 #2183A2
split-complementary
#8021A2 #83A221 #21A23F
monochromatic
#300C3C #58176F #8021A2 #A82CD4 #BD5FDE

Accessibility & contrast

On white

7.90
#8021A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#8021A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##8021A2#FFFFFF#000000##FFFFFF
##8021A21.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA5
Deuteranopia (green-blind)
#19549F
Tritanopia (blue-blind)
#7D4062
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8021a2;
/* rgb */ color: rgb(128, 33, 162);
/* oklch */ color: oklch(46.2% 0.199 315.0);
Tailwind
colors: {
  custom: {
    50: '#a968be',
    500: '#8021a2',
    950: '#000000',
  },
}
SCSS
$custom: #8021a2;
$custom-light: #a968be;
$custom-dark: #000000;
JSON
{
  "hex": "#8021a2",
  "rgb": {
    "r": 128,
    "g": 33,
    "b": 162
  },
  "hsl": {
    "h": 284.186,
    "s": 66.154,
    "l": 38.235
  },
  "oklch": {
    "l": 0.46198,
    "c": 0.19856,
    "h": 315
  },
  "luminance": 0.08286
}

Semantic roles & 50–950 ramp

primary
#8021A2
secondary
#77C35C
accent
#E93F6C
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #8021A2

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

Preview Lab → · Contrast checker → · Palette generator →

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