#AA52BB#AA52BB

#AA52BB is a mid, vivid purple. Relative luminance 0.182; OKLCH L 58.8% C 0.176 H 320.9°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#AA52BB
RGBrgb(170, 82, 187)
HSLhsl(290, 44%, 53%)
HSVhsv(290, 56%, 73%)
CMYKcmyk(9.1%, 56.1%, 0%, 26.7%)
CIE-LABlab(49.70, 51.71, -39.99)
CIE-LCHlch(49.70, 65.37, 322.28°)
OKLaboklab(58.82% 0.1367 -0.1111)
OKLCHoklch(58.82% 0.176 320.9)
XYZxyz(28.5635, 18.1698, 49.0066)
Luminance0.1817 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA52BB #63BB52
analogous
#7652BB #AA52BB #BB5297
triadic
#AA52BB #BBAA52 #52BBAA
tetradic
#AA52BB #BB7652 #63BB52 #5297BB
square
#AA52BB #BB7652 #63BB52 #5297BB
split-complementary
#AA52BB #97BB52 #52BB76
monochromatic
#5F2969 #873B95 #AA52BB #C07ECC #D5AADE

Accessibility & contrast

On white

4.53
#AA52BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#AA52BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AA52BB
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA52BB#FFFFFF#000000##000000
##AA52BB1.004.534.634.63
#FFFFFF4.531.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E70BE
Deuteranopia (green-blind)
#5C79B8
Tritanopia (blue-blind)
#AB617F
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #aa52bb;
/* rgb */ color: rgb(170, 82, 187);
/* oklch */ color: oklch(58.8% 0.176 320.9);
Tailwind
colors: {
  custom: {
    50: '#c687d0',
    500: '#aa52bb',
    950: '#000000',
  },
}
SCSS
$custom: #aa52bb;
$custom-light: #c687d0;
$custom-dark: #000000;
JSON
{
  "hex": "#aa52bb",
  "rgb": {
    "r": 170,
    "g": 82,
    "b": 187
  },
  "hsl": {
    "h": 290.286,
    "s": 43.568,
    "l": 52.745
  },
  "oklch": {
    "l": 0.58821,
    "c": 0.17615,
    "h": 320.9
  },
  "luminance": 0.18168
}

Semantic roles & 50–950 ramp

primary
#AA52BB
secondary
#A5CB9E
accent
#D35469
background
#FCF8FC
surface
#F8F0F9
border
#D1CBD2
text
#130C14
muted
#827D82

Preview Lab

Preview with #AA52BB

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

Preview Lab → · Contrast checker → · Palette generator →

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