#AA52E4#AA52E4

#AA52E4 is a mid, highly saturated violet. Relative luminance 0.202; OKLCH L 61.3% C 0.217 H 309.1°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#AA52E4
RGBrgb(170, 82, 228)
HSLhsl(276, 73%, 61%)
HSVhsv(276, 64%, 89%)
CMYKcmyk(25.4%, 64%, 0%, 10.6%)
CIE-LABlab(52.04, 60.23, -59.71)
CIE-LCHlch(52.04, 84.82, 315.25°)
OKLaboklab(61.28% 0.1371 -0.1687)
OKLCHoklch(61.28% 0.217 309.1)
XYZxyz(33.5957, 20.1827, 75.5096)
Luminance0.2018 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA52E4 #8CE452
analogous
#6152E4 #AA52E4 #E452D5
triadic
#AA52E4 #E4AA52 #52E4AA
tetradic
#AA52E4 #E46152 #8CE452 #52D5E4
square
#AA52E4 #E46152 #8CE452 #52D5E4
split-complementary
#AA52E4 #D5E452 #52E461
monochromatic
#6C19A2 #8F22D7 #AA52E4 #C487EC #DEBCF5

Accessibility & contrast

On white

4.17
#AA52E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#AA52E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AA52E4
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA52E4#FFFFFF#000000##000000
##AA52E41.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078E8
Deuteranopia (green-blind)
#3B7DE1
Tritanopia (blue-blind)
#A27094
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #aa52e4;
/* rgb */ color: rgb(170, 82, 228);
/* oklch */ color: oklch(61.3% 0.217 309.1);
Tailwind
colors: {
  custom: {
    50: '#c788ed',
    500: '#aa52e4',
    950: '#000000',
  },
}
SCSS
$custom: #aa52e4;
$custom-light: #c788ed;
$custom-dark: #000000;
JSON
{
  "hex": "#aa52e4",
  "rgb": {
    "r": 170,
    "g": 82,
    "b": 228
  },
  "hsl": {
    "h": 276.164,
    "s": 73,
    "l": 60.784
  },
  "oklch": {
    "l": 0.61276,
    "c": 0.21735,
    "h": 309.1
  },
  "luminance": 0.20182
}

Semantic roles & 50–950 ramp

primary
#AA52E4
secondary
#C3E5AD
accent
#D5105F
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AA52E4

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

Preview Lab → · Contrast checker → · Palette generator →

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