#AA20A6#AA20A6

#AA20A6 is a mid, highly saturated purple. Relative luminance 0.123; OKLCH L 52.7% C 0.220 H 329.5°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#AA20A6
RGBrgb(170, 32, 166)
HSLhsl(302, 68%, 40%)
HSVhsv(302, 81%, 67%)
CMYKcmyk(0%, 81.2%, 2.4%, 33.3%)
CIE-LABlab(41.74, 67.04, -40.24)
CIE-LCHlch(41.74, 78.19, 329.02°)
OKLaboklab(52.71% 0.1891 -0.1114)
OKLCHoklch(52.71% 0.22 329.5)
XYZxyz(23.9769, 12.3342, 37.1869)
Luminance0.1233 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA20A6 #20AA24
analogous
#6920AA #AA20A6 #AA2061
triadic
#AA20A6 #A6AA20 #20A6AA
tetradic
#AA20A6 #AA6920 #20AA24 #2061AA
square
#AA20A6 #AA6920 #20AA24 #2061AA
split-complementary
#AA20A6 #61AA20 #20AA69
monochromatic
#430D41 #761674 #AA20A6 #D82FD3 #E263DE

Accessibility & contrast

On white

6.06
#AA20A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#AA20A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA20A6
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA20A6#FFFFFF#000000##FFFFFF
##AA20A61.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057A9
Deuteranopia (green-blind)
#4C69A3
Tritanopia (blue-blind)
#B03764
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #aa20a6;
/* rgb */ color: rgb(170, 32, 166);
/* oklch */ color: oklch(52.7% 0.220 329.5);
Tailwind
colors: {
  custom: {
    50: '#c76ec1',
    500: '#aa20a6',
    950: '#000000',
  },
}
SCSS
$custom: #aa20a6;
$custom-light: #c76ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#aa20a6",
  "rgb": {
    "r": 170,
    "g": 32,
    "b": 166
  },
  "hsl": {
    "h": 301.739,
    "s": 68.317,
    "l": 39.608
  },
  "oklch": {
    "l": 0.52706,
    "c": 0.21951,
    "h": 329.5
  },
  "luminance": 0.12332
}

Semantic roles & 50–950 ramp

primary
#AA20A6
secondary
#5FC762
accent
#EB423D
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140812
muted
#827B81

Preview Lab

Preview with #AA20A6

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

Preview Lab → · Contrast checker → · Palette generator →

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