#AA52E7#AA52E7

#AA52E7 is a mid, highly saturated violet. Relative luminance 0.203; OKLCH L 61.5% C 0.220 H 308.4°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#AA52E7
RGBrgb(170, 82, 231)
HSLhsl(275, 76%, 61%)
HSVhsv(275, 65%, 91%)
CMYKcmyk(26.4%, 64.5%, 0%, 9.4%)
CIE-LABlab(52.23, 60.89, -61.10)
CIE-LCHlch(52.23, 86.26, 314.90°)
OKLaboklab(61.47% 0.1369 -0.1727)
OKLCHoklch(61.47% 0.22 308.4)
XYZxyz(34.0157, 20.3507, 77.7219)
Luminance0.2035 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA52E7 #8FE752
analogous
#6052E7 #AA52E7 #E752DA
triadic
#AA52E7 #E7AA52 #52E7AA
tetradic
#AA52E7 #E76052 #8FE752 #52DAE7
square
#AA52E7 #E76052 #8FE752 #52DAE7
split-complementary
#AA52E7 #DAE752 #52E760
monochromatic
#6C17A7 #8F1FDD #AA52E7 #C488EE #DFBDF6

Accessibility & contrast

On white

4.14
#AA52E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#AA52E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AA52E7
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA52E7#FFFFFF#000000##000000
##AA52E71.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079EC
Deuteranopia (green-blind)
#377EE4
Tritanopia (blue-blind)
#A17196
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #aa52e7;
/* rgb */ color: rgb(170, 82, 231);
/* oklch */ color: oklch(61.5% 0.220 308.4);
Tailwind
colors: {
  custom: {
    50: '#c888ef',
    500: '#aa52e7',
    950: '#000000',
  },
}
SCSS
$custom: #aa52e7;
$custom-light: #c888ef;
$custom-dark: #000000;
JSON
{
  "hex": "#aa52e7",
  "rgb": {
    "r": 170,
    "g": 82,
    "b": 231
  },
  "hsl": {
    "h": 275.436,
    "s": 75.635,
    "l": 61.373
  },
  "oklch": {
    "l": 0.61472,
    "c": 0.22041,
    "h": 308.4
  },
  "luminance": 0.2035
}

Semantic roles & 50–950 ramp

primary
#AA52E7
secondary
#C5E6AF
accent
#D80E60
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AA52E7

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

Preview Lab → · Contrast checker → · Palette generator →

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