#AA52B2#AA52B2

#AA52B2 is a mid, vivid purple. Relative luminance 0.178; OKLCH L 58.3% C 0.167 H 324.2°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#AA52B2
RGBrgb(170, 82, 178)
HSLhsl(295, 38%, 51%)
HSVhsv(295, 54%, 70%)
CMYKcmyk(4.5%, 53.9%, 0%, 30.2%)
CIE-LABlab(49.25, 49.98, -35.47)
CIE-LCHlch(49.25, 61.28, 324.64°)
OKLaboklab(58.34% 0.1358 -0.098)
OKLCHoklch(58.34% 0.167 324.2)
XYZxyz(27.6300, 17.7964, 44.0905)
Luminance0.1779 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA52B2 #5AB252
analogous
#7A52B2 #AA52B2 #B2528A
triadic
#AA52B2 #B2AA52 #52B2AA
tetradic
#AA52B2 #B27A52 #5AB252 #528AB2
square
#AA52B2 #B27A52 #5AB252 #528AB2
split-complementary
#AA52B2 #8AB252 #52B27A
monochromatic
#5B2A5F #833D8A #AA52B2 #BF7CC5 #D4A7D8

Accessibility & contrast

On white

4.61
#AA52B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#AA52B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AA52B2
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA52B2#FFFFFF#000000##FFFFFF
##AA52B21.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#456EB5
Deuteranopia (green-blind)
#6179AF
Tritanopia (blue-blind)
#AD5E7A
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #aa52b2;
/* rgb */ color: rgb(170, 82, 178);
/* oklch */ color: oklch(58.3% 0.167 324.2);
Tailwind
colors: {
  custom: {
    50: '#c687c9',
    500: '#aa52b2',
    950: '#000000',
  },
}
SCSS
$custom: #aa52b2;
$custom-light: #c687c9;
$custom-dark: #000000;
JSON
{
  "hex": "#aa52b2",
  "rgb": {
    "r": 170,
    "g": 82,
    "b": 178
  },
  "hsl": {
    "h": 295,
    "s": 38.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.58341,
    "c": 0.16748,
    "h": 324.2
  },
  "luminance": 0.17795
}

Semantic roles & 50–950 ramp

primary
#AA52B2
secondary
#9EC59B
accent
#CE5963
background
#FCF8FC
surface
#F8F0F8
border
#D1CBD1
text
#130B13
muted
#827C82

Preview Lab

Preview with #AA52B2

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

Preview Lab → · Contrast checker → · Palette generator →

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