#AA22A6#AA22A6

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

Color values

HEX#AA22A6
RGBrgb(170, 34, 166)
HSLhsl(302, 67%, 40%)
HSVhsv(302, 80%, 67%)
CMYKcmyk(0%, 80%, 2.4%, 33.3%)
CIE-LABlab(41.92, 66.54, -39.97)
CIE-LCHlch(41.92, 77.62, 329.01°)
OKLaboklab(52.83% 0.1877 -0.1106)
OKLCHoklch(52.83% 0.218 329.5)
XYZxyz(24.0324, 12.4452, 37.2054)
Luminance0.1244 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA22A6 #22AA26
analogous
#6A22AA #AA22A6 #AA2262
triadic
#AA22A6 #A6AA22 #22A6AA
tetradic
#AA22A6 #AA6A22 #22AA26 #2262AA
square
#AA22A6 #AA6A22 #22AA26 #2262AA
split-complementary
#AA22A6 #62AA22 #22AA6A
monochromatic
#440E42 #771874 #AA22A6 #D633D1 #E066DD

Accessibility & contrast

On white

6.02
#AA22A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#AA22A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA22A6
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA22A6#FFFFFF#000000##FFFFFF
##AA22A61.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #aa22a6;
/* rgb */ color: rgb(170, 34, 166);
/* oklch */ color: oklch(52.8% 0.218 329.5);
Tailwind
colors: {
  custom: {
    50: '#c76fc1',
    500: '#aa22a6',
    950: '#000000',
  },
}
SCSS
$custom: #aa22a6;
$custom-light: #c76fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#aa22a6",
  "rgb": {
    "r": 170,
    "g": 34,
    "b": 166
  },
  "hsl": {
    "h": 301.765,
    "s": 66.667,
    "l": 40
  },
  "oklch": {
    "l": 0.52829,
    "c": 0.21787,
    "h": 329.5
  },
  "luminance": 0.12443
}

Semantic roles & 50–950 ramp

primary
#AA22A6
secondary
#62C665
accent
#EA433E
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140812
muted
#827B81

Preview Lab

Preview with #AA22A6

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

Preview Lab → · Contrast checker → · Palette generator →

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