#AA2FAA#AA2FAA

#AA2FAA is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.0% C 0.208 H 328.0°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#AA2FAA
RGBrgb(170, 47, 170)
HSLhsl(300, 57%, 43%)
HSVhsv(300, 72%, 67%)
CMYKcmyk(0%, 72.4%, 0%, 33.3%)
CIE-LABlab(43.48, 63.33, -39.86)
CIE-LCHlch(43.48, 74.83, 327.81°)
OKLaboklab(54.02% 0.1767 -0.1104)
OKLCHoklch(54.02% 0.208 328)
XYZxyz(24.8495, 13.4831, 39.3161)
Luminance0.1348 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA2FAA #2FAA2F
analogous
#6C2FAA #AA2FAA #AA2F6C
triadic
#AA2FAA #AAAA2F #2FAAAA
tetradic
#AA2FAA #AA6C2F #2FAA2F #2F6CAA
square
#AA2FAA #AA6C2F #2FAA2F #2F6CAA
split-complementary
#AA2FAA #6CAA2F #2FAA6C
monochromatic
#4A144A #7A227A #AA2FAA #CD49CD #DA79DA

Accessibility & contrast

On white

5.68
#AA2FAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#AA2FAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA2FAA
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA2FAA#FFFFFF#000000##FFFFFF
##AA2FAA1.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#175DAD
Deuteranopia (green-blind)
#506CA7
Tritanopia (blue-blind)
#AF426A
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #aa2faa;
/* rgb */ color: rgb(170, 47, 170);
/* oklch */ color: oklch(54.0% 0.208 328.0);
Tailwind
colors: {
  custom: {
    50: '#c774c4',
    500: '#aa2faa',
    950: '#000000',
  },
}
SCSS
$custom: #aa2faa;
$custom-light: #c774c4;
$custom-dark: #000000;
JSON
{
  "hex": "#aa2faa",
  "rgb": {
    "r": 170,
    "g": 47,
    "b": 170
  },
  "hsl": {
    "h": 300,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.5402,
    "c": 0.20833,
    "h": 328
  },
  "luminance": 0.13481
}

Semantic roles & 50–950 ramp

primary
#AA2FAA
secondary
#72C272
accent
#E04848
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#130912
muted
#827B81

Preview Lab

Preview with #AA2FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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