#AA52E5#AA52E5

#AA52E5 is a mid, highly saturated violet. Relative luminance 0.202; OKLCH L 61.3% C 0.218 H 308.9°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#AA52E5
RGBrgb(170, 82, 229)
HSLhsl(276, 74%, 61%)
HSVhsv(276, 64%, 90%)
CMYKcmyk(25.8%, 64.2%, 0%, 10.2%)
CIE-LABlab(52.11, 60.45, -60.18)
CIE-LCHlch(52.11, 85.30, 315.13°)
OKLaboklab(61.34% 0.137 -0.17)
OKLCHoklch(61.34% 0.218 308.9)
XYZxyz(33.7349, 20.2383, 76.2428)
Luminance0.2024 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA52E5 #8DE552
analogous
#6052E5 #AA52E5 #E552D7
triadic
#AA52E5 #E5AA52 #52E5AA
tetradic
#AA52E5 #E56052 #8DE552 #52D7E5
square
#AA52E5 #E56052 #8DE552 #52D7E5
split-complementary
#AA52E5 #D7E552 #52E560
monochromatic
#6C19A4 #8F21D9 #AA52E5 #C487ED #DEBCF5

Accessibility & contrast

On white

4.16
#AA52E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#AA52E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AA52E5
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA52E5#FFFFFF#000000##000000
##AA52E51.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079E9
Deuteranopia (green-blind)
#3A7DE2
Tritanopia (blue-blind)
#A17095
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #aa52e5;
/* rgb */ color: rgb(170, 82, 229);
/* oklch */ color: oklch(61.3% 0.218 308.9);
Tailwind
colors: {
  custom: {
    50: '#c788ee',
    500: '#aa52e5',
    950: '#000000',
  },
}
SCSS
$custom: #aa52e5;
$custom-light: #c788ee;
$custom-dark: #000000;
JSON
{
  "hex": "#aa52e5",
  "rgb": {
    "r": 170,
    "g": 82,
    "b": 229
  },
  "hsl": {
    "h": 275.918,
    "s": 73.869,
    "l": 60.98
  },
  "oklch": {
    "l": 0.61341,
    "c": 0.21837,
    "h": 308.9
  },
  "luminance": 0.20238
}

Semantic roles & 50–950 ramp

primary
#AA52E5
secondary
#C4E5AE
accent
#D6105F
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AA52E5

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

Preview Lab → · Contrast checker → · Palette generator →

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