#AA52E6#AA52E6

#AA52E6 is a mid, highly saturated violet. Relative luminance 0.203; OKLCH L 61.4% C 0.219 H 308.6°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#AA52E6
RGBrgb(170, 82, 230)
HSLhsl(276, 75%, 61%)
HSVhsv(276, 64%, 90%)
CMYKcmyk(26.1%, 64.3%, 0%, 9.8%)
CIE-LABlab(52.17, 60.67, -60.64)
CIE-LCHlch(52.17, 85.78, 315.01°)
OKLaboklab(61.41% 0.1369 -0.1714)
OKLCHoklch(61.41% 0.219 308.6)
XYZxyz(33.8749, 20.2944, 76.9802)
Luminance0.2029 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA52E6 #8EE652
analogous
#6052E6 #AA52E6 #E652D8
triadic
#AA52E6 #E6AA52 #52E6AA
tetradic
#AA52E6 #E66052 #8EE652 #52D8E6
square
#AA52E6 #E66052 #8EE652 #52D8E6
split-complementary
#AA52E6 #D8E652 #52E660
monochromatic
#6C18A6 #8F20DB #AA52E6 #C487EE #DFBDF5

Accessibility & contrast

On white

4.15
#AA52E6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#AA52E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AA52E6
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA52E6#FFFFFF#000000##000000
##AA52E61.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079EB
Deuteranopia (green-blind)
#387DE3
Tritanopia (blue-blind)
#A17195
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #aa52e6;
/* rgb */ color: rgb(170, 82, 230);
/* oklch */ color: oklch(61.4% 0.219 308.6);
Tailwind
colors: {
  custom: {
    50: '#c788ef',
    500: '#aa52e6',
    950: '#000000',
  },
}
SCSS
$custom: #aa52e6;
$custom-light: #c788ef;
$custom-dark: #000000;
JSON
{
  "hex": "#aa52e6",
  "rgb": {
    "r": 170,
    "g": 82,
    "b": 230
  },
  "hsl": {
    "h": 275.676,
    "s": 74.747,
    "l": 61.176
  },
  "oklch": {
    "l": 0.61407,
    "c": 0.21939,
    "h": 308.6
  },
  "luminance": 0.20294
}

Semantic roles & 50–950 ramp

primary
#AA52E6
secondary
#C5E6AE
accent
#D70F60
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AA52E6

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

Preview Lab → · Contrast checker → · Palette generator →

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