#AA21A6#AA21A6

#AA21A6 is a mid, highly saturated purple. Relative luminance 0.124; OKLCH L 52.8% C 0.219 H 329.5°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#AA21A6
RGBrgb(170, 33, 166)
HSLhsl(302, 67%, 40%)
HSVhsv(302, 81%, 67%)
CMYKcmyk(0%, 80.6%, 2.4%, 33.3%)
CIE-LABlab(41.83, 66.79, -40.11)
CIE-LCHlch(41.83, 77.91, 329.01°)
OKLaboklab(52.77% 0.1884 -0.111)
OKLCHoklch(52.77% 0.219 329.5)
XYZxyz(24.0042, 12.3888, 37.1960)
Luminance0.1239 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA21A6 #21AA25
analogous
#6A21AA #AA21A6 #AA2161
triadic
#AA21A6 #A6AA21 #21A6AA
tetradic
#AA21A6 #AA6A21 #21AA25 #2161AA
square
#AA21A6 #AA6A21 #21AA25 #2161AA
split-complementary
#AA21A6 #61AA21 #21AA6A
monochromatic
#430D42 #771774 #AA21A6 #D731D2 #E164DD

Accessibility & contrast

On white

6.04
#AA21A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#AA21A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA21A6
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA21A6#FFFFFF#000000##FFFFFF
##AA21A61.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057A9
Deuteranopia (green-blind)
#4D69A3
Tritanopia (blue-blind)
#B03864
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #aa21a6;
/* rgb */ color: rgb(170, 33, 166);
/* oklch */ color: oklch(52.8% 0.219 329.5);
Tailwind
colors: {
  custom: {
    50: '#c76fc1',
    500: '#aa21a6',
    950: '#000000',
  },
}
SCSS
$custom: #aa21a6;
$custom-light: #c76fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#aa21a6",
  "rgb": {
    "r": 170,
    "g": 33,
    "b": 166
  },
  "hsl": {
    "h": 301.752,
    "s": 67.488,
    "l": 39.804
  },
  "oklch": {
    "l": 0.52767,
    "c": 0.2187,
    "h": 329.5
  },
  "luminance": 0.12387
}

Semantic roles & 50–950 ramp

primary
#AA21A6
secondary
#61C664
accent
#EA423D
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140812
muted
#827B81

Preview Lab

Preview with #AA21A6

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

Preview Lab → · Contrast checker → · Palette generator →

#AA21A6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva