#AA22AA#AA22AA

#AA22AA is a mid, highly saturated purple. Relative luminance 0.126; OKLCH L 53.1% C 0.221 H 328.1°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#AA22AA
RGBrgb(170, 34, 170)
HSLhsl(300, 67%, 40%)
HSVhsv(300, 80%, 67%)
CMYKcmyk(0%, 80%, 0%, 33.3%)
CIE-LABlab(42.15, 67.17, -41.99)
CIE-LCHlch(42.15, 79.21, 327.99°)
OKLaboklab(53.07% 0.1876 -0.1165)
OKLCHoklch(53.07% 0.221 328.1)
XYZxyz(24.4050, 12.5942, 39.1680)
Luminance0.1259 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA22AA #22AA22
analogous
#6622AA #AA22AA #AA2266
triadic
#AA22AA #AAAA22 #22AAAA
tetradic
#AA22AA #AA6622 #22AA22 #2266AA
square
#AA22AA #AA6622 #22AA22 #2266AA
split-complementary
#AA22AA #66AA22 #22AA66
monochromatic
#440E44 #771877 #AA22AA #D633D6 #E066E0

Accessibility & contrast

On white

5.97
#AA22AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#AA22AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA22AA
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA22AA#FFFFFF#000000##FFFFFF
##AA22AA1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #aa22aa;
/* rgb */ color: rgb(170, 34, 170);
/* oklch */ color: oklch(53.1% 0.221 328.1);
Tailwind
colors: {
  custom: {
    50: '#c76fc4',
    500: '#aa22aa',
    950: '#000000',
  },
}
SCSS
$custom: #aa22aa;
$custom-light: #c76fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#aa22aa",
  "rgb": {
    "r": 170,
    "g": 34,
    "b": 170
  },
  "hsl": {
    "h": 300,
    "s": 66.667,
    "l": 40
  },
  "oklch": {
    "l": 0.53067,
    "c": 0.2208,
    "h": 328.1
  },
  "luminance": 0.12592
}

Semantic roles & 50–950 ramp

primary
#AA22AA
secondary
#62C662
accent
#EA3E3E
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140813
muted
#827B82

Preview Lab

Preview with #AA22AA

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

Preview Lab → · Contrast checker → · Palette generator →

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