#AA21AA#AA21AA

#AA21AA is a mid, highly saturated purple. Relative luminance 0.125; OKLCH L 53.0% C 0.222 H 328.2°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#AA21AA
RGBrgb(170, 33, 170)
HSLhsl(300, 67%, 40%)
HSVhsv(300, 81%, 67%)
CMYKcmyk(0%, 80.6%, 0%, 33.3%)
CIE-LABlab(42.06, 67.42, -42.13)
CIE-LCHlch(42.06, 79.50, 328.00°)
OKLaboklab(53.01% 0.1883 -0.1169)
OKLCHoklch(53.01% 0.222 328.2)
XYZxyz(24.3768, 12.5379, 39.1586)
Luminance0.1254 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA21AA #21AA21
analogous
#6621AA #AA21AA #AA2166
triadic
#AA21AA #AAAA21 #21AAAA
tetradic
#AA21AA #AA6621 #21AA21 #2166AA
square
#AA21AA #AA6621 #21AA21 #2166AA
split-complementary
#AA21AA #66AA21 #21AA66
monochromatic
#430D43 #771777 #AA21AA #D731D7 #E164E1

Accessibility & contrast

On white

5.99
#AA21AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#AA21AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA21AA
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA21AA#FFFFFF#000000##FFFFFF
##AA21AA1.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AE
Deuteranopia (green-blind)
#4A69A7
Tritanopia (blue-blind)
#B03A67
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #aa21aa;
/* rgb */ color: rgb(170, 33, 170);
/* oklch */ color: oklch(53.0% 0.222 328.2);
Tailwind
colors: {
  custom: {
    50: '#c76fc4',
    500: '#aa21aa',
    950: '#000000',
  },
}
SCSS
$custom: #aa21aa;
$custom-light: #c76fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#aa21aa",
  "rgb": {
    "r": 170,
    "g": 33,
    "b": 170
  },
  "hsl": {
    "h": 300,
    "s": 67.488,
    "l": 39.804
  },
  "oklch": {
    "l": 0.53005,
    "c": 0.22161,
    "h": 328.2
  },
  "luminance": 0.12536
}

Semantic roles & 50–950 ramp

primary
#AA21AA
secondary
#61C661
accent
#EA3D3D
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140813
muted
#827B82

Preview Lab

Preview with #AA21AA

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

Preview Lab → · Contrast checker → · Palette generator →

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