#AA52DF#AA52DF

#AA52DF is a mid, highly saturated violet. Relative luminance 0.199; OKLCH L 61.0% C 0.212 H 310.3°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#AA52DF
RGBrgb(170, 82, 223)
HSLhsl(277, 69%, 60%)
HSVhsv(277, 63%, 87%)
CMYKcmyk(23.8%, 63.2%, 0%, 12.5%)
CIE-LABlab(51.73, 59.15, -57.38)
CIE-LCHlch(51.73, 82.41, 315.87°)
OKLaboklab(60.96% 0.1373 -0.1618)
OKLCHoklch(60.96% 0.212 310.3)
XYZxyz(32.9116, 19.9090, 71.9068)
Luminance0.1991 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA52DF #87DF52
analogous
#6452DF #AA52DF #DF52CD
triadic
#AA52DF #DFAA52 #52DFAA
tetradic
#AA52DF #DF6452 #87DF52 #52CDDF
square
#AA52DF #DF6452 #87DF52 #52CDDF
split-complementary
#AA52DF #CDDF52 #52DF64
monochromatic
#6B1D9A #8F26CE #AA52DF #C386E9 #DDB9F2

Accessibility & contrast

On white

4.22
#AA52DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#AA52DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AA52DF
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA52DF#FFFFFF#000000##000000
##AA52DF1.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077E3
Deuteranopia (green-blind)
#407DDC
Tritanopia (blue-blind)
#A36E91
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #aa52df;
/* rgb */ color: rgb(170, 82, 223);
/* oklch */ color: oklch(61.0% 0.212 310.3);
Tailwind
colors: {
  custom: {
    50: '#c788ea',
    500: '#aa52df',
    950: '#000000',
  },
}
SCSS
$custom: #aa52df;
$custom-light: #c788ea;
$custom-dark: #000000;
JSON
{
  "hex": "#aa52df",
  "rgb": {
    "r": 170,
    "g": 82,
    "b": 223
  },
  "hsl": {
    "h": 277.447,
    "s": 68.78,
    "l": 59.804
  },
  "oklch": {
    "l": 0.60955,
    "c": 0.21226,
    "h": 310.3
  },
  "luminance": 0.19908
}

Semantic roles & 50–950 ramp

primary
#AA52DF
secondary
#C0E2AB
accent
#EC3C7E
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AA52DF

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

Preview Lab → · Contrast checker → · Palette generator →

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