#AA2AA7#AA2AA7

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

Color values

HEX#AA2AA7
RGBrgb(170, 42, 167)
HSLhsl(301, 60%, 42%)
HSVhsv(301, 75%, 67%)
CMYKcmyk(0%, 75.3%, 1.8%, 33.3%)
CIE-LABlab(42.75, 64.44, -39.23)
CIE-LCHlch(42.75, 75.44, 328.67°)
OKLaboklab(53.45% 0.1812 -0.1086)
OKLCHoklch(53.45% 0.211 329.1)
XYZxyz(24.3804, 12.9939, 37.7757)
Luminance0.1299 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA2AA7 #2AAA2D
analogous
#6D2AAA #AA2AA7 #AA2A67
triadic
#AA2AA7 #A7AA2A #2AA7AA
tetradic
#AA2AA7 #AA6D2A #2AAA2D #2A67AA
square
#AA2AA7 #AA6D2A #2AAA2D #2A67AA
split-complementary
#AA2AA7 #67AA2A #2AAA6D
monochromatic
#481247 #791E77 #AA2AA7 #D041CD #DC72DA

Accessibility & contrast

On white

5.84
#AA2AA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#AA2AA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA2AA7
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA2AA7#FFFFFF#000000##FFFFFF
##AA2AA71.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#135AAA
Deuteranopia (green-blind)
#506BA4
Tritanopia (blue-blind)
#B03D67
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #aa2aa7;
/* rgb */ color: rgb(170, 42, 167);
/* oklch */ color: oklch(53.4% 0.211 329.1);
Tailwind
colors: {
  custom: {
    50: '#c772c1',
    500: '#aa2aa7',
    950: '#000000',
  },
}
SCSS
$custom: #aa2aa7;
$custom-light: #c772c1;
$custom-dark: #000000;
JSON
{
  "hex": "#aa2aa7",
  "rgb": {
    "r": 170,
    "g": 42,
    "b": 167
  },
  "hsl": {
    "h": 301.406,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.53445,
    "c": 0.21126,
    "h": 329.1
  },
  "luminance": 0.12992
}

Semantic roles & 50–950 ramp

primary
#AA2AA7
secondary
#6CC36E
accent
#E44844
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AA2AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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