#AA2AA6#AA2AA6

#AA2AA6 is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.4% C 0.211 H 329.4°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#AA2AA6
RGBrgb(170, 42, 166)
HSLhsl(302, 60%, 42%)
HSVhsv(302, 75%, 67%)
CMYKcmyk(0%, 75.3%, 2.4%, 33.3%)
CIE-LABlab(42.70, 64.28, -38.73)
CIE-LCHlch(42.70, 75.04, 328.93°)
OKLaboklab(53.39% 0.1812 -0.1071)
OKLCHoklch(53.39% 0.211 329.4)
XYZxyz(24.2883, 12.9570, 37.2907)
Luminance0.1295 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA2AA6 #2AAA2E
analogous
#6E2AAA #AA2AA6 #AA2A66
triadic
#AA2AA6 #A6AA2A #2AA6AA
tetradic
#AA2AA6 #AA6E2A #2AAA2E #2A66AA
square
#AA2AA6 #AA6E2A #2AAA2E #2A66AA
split-complementary
#AA2AA6 #66AA2A #2AAA6E
monochromatic
#481246 #791E76 #AA2AA6 #D041CC #DC72D9

Accessibility & contrast

On white

5.85
#AA2AA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#AA2AA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA2AA6
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA2AA6#FFFFFF#000000##FFFFFF
##AA2AA61.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#155AA9
Deuteranopia (green-blind)
#506BA3
Tritanopia (blue-blind)
#B03D66
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #aa2aa6;
/* rgb */ color: rgb(170, 42, 166);
/* oklch */ color: oklch(53.4% 0.211 329.4);
Tailwind
colors: {
  custom: {
    50: '#c772c1',
    500: '#aa2aa6',
    950: '#000000',
  },
}
SCSS
$custom: #aa2aa6;
$custom-light: #c772c1;
$custom-dark: #000000;
JSON
{
  "hex": "#aa2aa6",
  "rgb": {
    "r": 170,
    "g": 42,
    "b": 166
  },
  "hsl": {
    "h": 301.875,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.53387,
    "c": 0.21051,
    "h": 329.4
  },
  "luminance": 0.12955
}

Semantic roles & 50–950 ramp

primary
#AA2AA6
secondary
#6CC36F
accent
#E44944
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AA2AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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