#AA2AA5#AA2AA5

#AA2AA5 is a mid, highly saturated purple. Relative luminance 0.129; OKLCH L 53.3% C 0.210 H 329.8°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#AA2AA5
RGBrgb(170, 42, 165)
HSLhsl(302, 60%, 42%)
HSVhsv(302, 75%, 67%)
CMYKcmyk(0%, 75.3%, 2.9%, 33.3%)
CIE-LABlab(42.64, 64.12, -38.22)
CIE-LCHlch(42.64, 74.64, 329.20°)
OKLaboklab(53.33% 0.1812 -0.1056)
OKLCHoklch(53.33% 0.21 329.8)
XYZxyz(24.1969, 12.9205, 36.8095)
Luminance0.1292 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA2AA5 #2AAA2F
analogous
#6F2AAA #AA2AA5 #AA2A65
triadic
#AA2AA5 #A5AA2A #2AA5AA
tetradic
#AA2AA5 #AA6F2A #2AAA2F #2A65AA
square
#AA2AA5 #AA6F2A #2AAA2F #2A65AA
split-complementary
#AA2AA5 #65AA2A #2AAA6F
monochromatic
#481246 #791E75 #AA2AA5 #D041CB #DC72D8

Accessibility & contrast

On white

5.86
#AA2AA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#AA2AA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA2AA5
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA2AA5#FFFFFF#000000##FFFFFF
##AA2AA51.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#175AA8
Deuteranopia (green-blind)
#516BA2
Tritanopia (blue-blind)
#B03C66
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #aa2aa5;
/* rgb */ color: rgb(170, 42, 165);
/* oklch */ color: oklch(53.3% 0.210 329.8);
Tailwind
colors: {
  custom: {
    50: '#c772c0',
    500: '#aa2aa5',
    950: '#000000',
  },
}
SCSS
$custom: #aa2aa5;
$custom-light: #c772c0;
$custom-dark: #000000;
JSON
{
  "hex": "#aa2aa5",
  "rgb": {
    "r": 170,
    "g": 42,
    "b": 165
  },
  "hsl": {
    "h": 302.344,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.5333,
    "c": 0.20976,
    "h": 329.8
  },
  "luminance": 0.12919
}

Semantic roles & 50–950 ramp

primary
#AA2AA5
secondary
#6CC370
accent
#E44B44
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AA2AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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