#AA22A8#AA22A8

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

Color values

HEX#AA22A8
RGBrgb(170, 34, 168)
HSLhsl(301, 67%, 40%)
HSVhsv(301, 80%, 67%)
CMYKcmyk(0%, 80%, 1.2%, 33.3%)
CIE-LABlab(42.03, 66.85, -40.98)
CIE-LCHlch(42.03, 78.41, 328.49°)
OKLaboklab(52.95% 0.1876 -0.1136)
OKLCHoklch(52.95% 0.219 328.8)
XYZxyz(24.2173, 12.5191, 38.1791)
Luminance0.1252 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA22A8 #22AA24
analogous
#6822AA #AA22A8 #AA2264
triadic
#AA22A8 #A8AA22 #22A8AA
tetradic
#AA22A8 #AA6822 #22AA24 #2264AA
square
#AA22A8 #AA6822 #22AA24 #2264AA
split-complementary
#AA22A8 #64AA22 #22AA68
monochromatic
#440E43 #771876 #AA22A8 #D633D4 #E066DF

Accessibility & contrast

On white

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

On black

3.50
#AA22A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##AA22A8#FFFFFF#000000##FFFFFF
##AA22A81.005.993.505.99
#FFFFFF5.991.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AB
Deuteranopia (green-blind)
#4C69A5
Tritanopia (blue-blind)
#B03966
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #aa22a8;
/* rgb */ color: rgb(170, 34, 168);
/* oklch */ color: oklch(52.9% 0.219 328.8);
Tailwind
colors: {
  custom: {
    50: '#c76fc2',
    500: '#aa22a8',
    950: '#000000',
  },
}
SCSS
$custom: #aa22a8;
$custom-light: #c76fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#aa22a8",
  "rgb": {
    "r": 170,
    "g": 34,
    "b": 168
  },
  "hsl": {
    "h": 300.882,
    "s": 66.667,
    "l": 40
  },
  "oklch": {
    "l": 0.52947,
    "c": 0.21933,
    "h": 328.8
  },
  "luminance": 0.12517
}

Semantic roles & 50–950 ramp

primary
#AA22A8
secondary
#62C663
accent
#EA413E
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140812
muted
#827B81

Preview Lab

Preview with #AA22A8

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

Preview Lab → · Contrast checker → · Palette generator →

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