#AA52E1#AA52E1

#AA52E1 is a mid, highly saturated violet. Relative luminance 0.200; OKLCH L 61.1% C 0.214 H 309.8°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#AA52E1
RGBrgb(170, 82, 225)
HSLhsl(277, 70%, 60%)
HSVhsv(277, 64%, 88%)
CMYKcmyk(24.4%, 63.6%, 0%, 11.8%)
CIE-LABlab(51.86, 59.58, -58.32)
CIE-LCHlch(51.86, 83.37, 315.61°)
OKLaboklab(61.08% 0.1372 -0.1646)
OKLCHoklch(61.08% 0.214 309.8)
XYZxyz(33.1828, 20.0175, 73.3353)
Luminance0.2002 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA52E1 #89E152
analogous
#6252E1 #AA52E1 #E152D0
triadic
#AA52E1 #E1AA52 #52E1AA
tetradic
#AA52E1 #E16252 #89E152 #52D0E1
square
#AA52E1 #E16252 #89E152 #52D0E1
split-complementary
#AA52E1 #D0E152 #52E162
monochromatic
#6B1B9D #8F24D1 #AA52E1 #C486EA #DDBAF3

Accessibility & contrast

On white

4.20
#AA52E1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#AA52E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AA52E1
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA52E1#FFFFFF#000000##000000
##AA52E11.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078E5
Deuteranopia (green-blind)
#3E7DDE
Tritanopia (blue-blind)
#A26F92
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #aa52e1;
/* rgb */ color: rgb(170, 82, 225);
/* oklch */ color: oklch(61.1% 0.214 309.8);
Tailwind
colors: {
  custom: {
    50: '#c788eb',
    500: '#aa52e1',
    950: '#000000',
  },
}
SCSS
$custom: #aa52e1;
$custom-light: #c788eb;
$custom-dark: #000000;
JSON
{
  "hex": "#aa52e1",
  "rgb": {
    "r": 170,
    "g": 82,
    "b": 225
  },
  "hsl": {
    "h": 276.923,
    "s": 70.443,
    "l": 60.196
  },
  "oklch": {
    "l": 0.61083,
    "c": 0.21429,
    "h": 309.8
  },
  "luminance": 0.20017
}

Semantic roles & 50–950 ramp

primary
#AA52E1
secondary
#C1E3AC
accent
#D2135D
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AA52E1

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

Preview Lab → · Contrast checker → · Palette generator →

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