#AA52E2#AA52E2

#AA52E2 is a mid, highly saturated violet. Relative luminance 0.201; OKLCH L 61.1% C 0.215 H 309.6°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#AA52E2
RGBrgb(170, 82, 226)
HSLhsl(277, 71%, 60%)
HSVhsv(277, 64%, 89%)
CMYKcmyk(24.8%, 63.7%, 0%, 11.4%)
CIE-LABlab(51.92, 59.80, -58.78)
CIE-LCHlch(51.92, 83.85, 315.49°)
OKLaboklab(61.15% 0.1372 -0.1659)
OKLCHoklch(61.15% 0.215 309.6)
XYZxyz(33.3196, 20.0722, 74.0558)
Luminance0.2007 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA52E2 #8AE252
analogous
#6252E2 #AA52E2 #E252D2
triadic
#AA52E2 #E2AA52 #52E2AA
tetradic
#AA52E2 #E26252 #8AE252 #52D2E2
square
#AA52E2 #E26252 #8AE252 #52D2E2
split-complementary
#AA52E2 #D2E252 #52E262
monochromatic
#6C1B9F #8F23D3 #AA52E2 #C486EB #DEBBF4

Accessibility & contrast

On white

4.19
#AA52E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#AA52E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AA52E2
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA52E2#FFFFFF#000000##000000
##AA52E21.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078E6
Deuteranopia (green-blind)
#3D7DDF
Tritanopia (blue-blind)
#A26F93
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #aa52e2;
/* rgb */ color: rgb(170, 82, 226);
/* oklch */ color: oklch(61.1% 0.215 309.6);
Tailwind
colors: {
  custom: {
    50: '#c788ec',
    500: '#aa52e2',
    950: '#000000',
  },
}
SCSS
$custom: #aa52e2;
$custom-light: #c788ec;
$custom-dark: #000000;
JSON
{
  "hex": "#aa52e2",
  "rgb": {
    "r": 170,
    "g": 82,
    "b": 226
  },
  "hsl": {
    "h": 276.667,
    "s": 71.287,
    "l": 60.392
  },
  "oklch": {
    "l": 0.61147,
    "c": 0.21531,
    "h": 309.6
  },
  "luminance": 0.20072
}

Semantic roles & 50–950 ramp

primary
#AA52E2
secondary
#C2E3AC
accent
#D3125D
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AA52E2

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

Preview Lab → · Contrast checker → · Palette generator →

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