#AA52D8#AA52D8

#AA52D8 is a mid, highly saturated violet. Relative luminance 0.195; OKLCH L 60.5% C 0.205 H 312.1°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#AA52D8
RGBrgb(170, 82, 216)
HSLhsl(279, 63%, 58%)
HSVhsv(279, 62%, 85%)
CMYKcmyk(21.3%, 62%, 0%, 15.3%)
CIE-LABlab(51.31, 57.65, -54.09)
CIE-LCHlch(51.31, 79.05, 316.83°)
OKLaboklab(60.51% 0.1376 -0.1522)
OKLCHoklch(60.51% 0.205 312.1)
XYZxyz(31.9873, 19.5393, 67.0389)
Luminance0.1954 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA52D8 #80D852
analogous
#6752D8 #AA52D8 #D852C3
triadic
#AA52D8 #D8AA52 #52D8AA
tetradic
#AA52D8 #D86752 #80D852 #52C3D8
square
#AA52D8 #D86752 #80D852 #52C3D8
split-complementary
#AA52D8 #C3D852 #52D867
monochromatic
#69208F #8E2CC1 #AA52D8 #C384E3 #DBB6EF

Accessibility & contrast

On white

4.28
#AA52D8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#AA52D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AA52D8
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA52D8#FFFFFF#000000##000000
##AA52D81.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#1876DC
Deuteranopia (green-blind)
#477CD5
Tritanopia (blue-blind)
#A56B8E
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #aa52d8;
/* rgb */ color: rgb(170, 82, 216);
/* oklch */ color: oklch(60.5% 0.205 312.1);
Tailwind
colors: {
  custom: {
    50: '#c788e5',
    500: '#aa52d8',
    950: '#000000',
  },
}
SCSS
$custom: #aa52d8;
$custom-light: #c788e5;
$custom-dark: #000000;
JSON
{
  "hex": "#aa52d8",
  "rgb": {
    "r": 170,
    "g": 82,
    "b": 216
  },
  "hsl": {
    "h": 279.403,
    "s": 63.208,
    "l": 58.431
  },
  "oklch": {
    "l": 0.60514,
    "c": 0.20514,
    "h": 312.1
  },
  "luminance": 0.19539
}

Semantic roles & 50–950 ramp

primary
#AA52D8
secondary
#BBDDA8
accent
#E6427A
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AA52D8

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

Preview Lab → · Contrast checker → · Palette generator →

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