#A521AA#A521AA

#A521AA is a mid, highly saturated purple. Relative luminance 0.120; OKLCH L 52.2% C 0.219 H 326.5°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#A521AA
RGBrgb(165, 33, 170)
HSLhsl(298, 67%, 40%)
HSVhsv(298, 81%, 67%)
CMYKcmyk(2.9%, 80.6%, 0%, 33.3%)
CIE-LABlab(41.20, 66.44, -43.54)
CIE-LCHlch(41.20, 79.44, 326.76°)
OKLaboklab(52.24% 0.183 -0.1212)
OKLCHoklch(52.24% 0.219 326.5)
XYZxyz(23.3162, 11.9910, 39.1088)
Luminance0.1199 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A521AA #26AA21
analogous
#6021AA #A521AA #AA216B
triadic
#A521AA #AAA521 #21AAA5
tetradic
#A521AA #AA6021 #26AA21 #216BAA
square
#A521AA #AA6021 #26AA21 #216BAA
split-complementary
#A521AA #6BAA21 #21AA60
monochromatic
#420D43 #731777 #A521AA #D131D7 #DC64E1

Accessibility & contrast

On white

6.18
#A521AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#A521AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A521AA
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A521AA#FFFFFF#000000##FFFFFF
##A521AA1.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AE
Deuteranopia (green-blind)
#4567A7
Tritanopia (blue-blind)
#AA3B67
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #a521aa;
/* rgb */ color: rgb(165, 33, 170);
/* oklch */ color: oklch(52.2% 0.219 326.5);
Tailwind
colors: {
  custom: {
    50: '#c46ec4',
    500: '#a521aa',
    950: '#000000',
  },
}
SCSS
$custom: #a521aa;
$custom-light: #c46ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#a521aa",
  "rgb": {
    "r": 165,
    "g": 33,
    "b": 170
  },
  "hsl": {
    "h": 297.81,
    "s": 67.488,
    "l": 39.804
  },
  "oklch": {
    "l": 0.52235,
    "c": 0.21945,
    "h": 326.5
  },
  "luminance": 0.11989
}

Semantic roles & 50–950 ramp

primary
#A521AA
secondary
#64C661
accent
#EA3D44
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130813
muted
#827B82

Preview Lab

Preview with #A521AA

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

Preview Lab → · Contrast checker → · Palette generator →

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