#AA52E8#AA52E8

#AA52E8 is a mid, highly saturated violet. Relative luminance 0.204; OKLCH L 61.5% C 0.221 H 308.2°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#AA52E8
RGBrgb(170, 82, 232)
HSLhsl(275, 77%, 62%)
HSVhsv(275, 65%, 91%)
CMYKcmyk(26.7%, 64.7%, 0%, 9%)
CIE-LABlab(52.29, 61.11, -61.56)
CIE-LCHlch(52.29, 86.74, 314.79°)
OKLaboklab(61.54% 0.1368 -0.1741)
OKLCHoklch(61.54% 0.221 308.2)
XYZxyz(34.1574, 20.4073, 78.4679)
Luminance0.2041 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA52E8 #90E852
analogous
#5F52E8 #AA52E8 #E852DB
triadic
#AA52E8 #E8AA52 #52E8AA
tetradic
#AA52E8 #E85F52 #90E852 #52DBE8
square
#AA52E8 #E85F52 #90E852 #52DBE8
split-complementary
#AA52E8 #DBE852 #52E85F
monochromatic
#6D16A9 #8F1EDF #AA52E8 #C588EF #DFBEF6

Accessibility & contrast

On white

4.13
#AA52E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#AA52E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AA52E8
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA52E8#FFFFFF#000000##000000
##AA52E81.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079ED
Deuteranopia (green-blind)
#367EE5
Tritanopia (blue-blind)
#A07196
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #aa52e8;
/* rgb */ color: rgb(170, 82, 232);
/* oklch */ color: oklch(61.5% 0.221 308.2);
Tailwind
colors: {
  custom: {
    50: '#c888f0',
    500: '#aa52e8',
    950: '#000000',
  },
}
SCSS
$custom: #aa52e8;
$custom-light: #c888f0;
$custom-dark: #000000;
JSON
{
  "hex": "#aa52e8",
  "rgb": {
    "r": 170,
    "g": 82,
    "b": 232
  },
  "hsl": {
    "h": 275.2,
    "s": 76.531,
    "l": 61.569
  },
  "oklch": {
    "l": 0.61538,
    "c": 0.22142,
    "h": 308.2
  },
  "luminance": 0.20407
}

Semantic roles & 50–950 ramp

primary
#AA52E8
secondary
#C6E7AF
accent
#D90D61
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AA52E8

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

Preview Lab → · Contrast checker → · Palette generator →

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