#A520A1#A520A1

#A520A1 is a mid, highly saturated purple. Relative luminance 0.116; OKLCH L 51.6% C 0.214 H 329.5°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#A520A1
RGBrgb(165, 32, 161)
HSLhsl(302, 68%, 39%)
HSVhsv(302, 81%, 65%)
CMYKcmyk(0%, 80.6%, 2.4%, 35.3%)
CIE-LABlab(40.59, 65.25, -39.14)
CIE-LCHlch(40.59, 76.09, 329.04°)
OKLaboklab(51.63% 0.1841 -0.1083)
OKLCHoklch(51.63% 0.214 329.5)
XYZxyz(22.4664, 11.6073, 34.7685)
Luminance0.1161 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A520A1 #20A524
analogous
#6620A5 #A520A1 #A5205E
triadic
#A520A1 #A1A520 #20A1A5
tetradic
#A520A1 #A56620 #20A524 #205EA5
square
#A520A1 #A56620 #20A524 #205EA5
split-complementary
#A520A1 #5EA520 #20A566
monochromatic
#3E0C3D #72166F #A520A1 #D62CD1 #E05FDC

Accessibility & contrast

On white

6.32
#A520A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#A520A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A520A1
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A520A1#FFFFFF#000000##FFFFFF
##A520A11.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A4
Deuteranopia (green-blind)
#4A669E
Tritanopia (blue-blind)
#AB3661
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a520a1;
/* rgb */ color: rgb(165, 32, 161);
/* oklch */ color: oklch(51.6% 0.214 329.5);
Tailwind
colors: {
  custom: {
    50: '#c46dbd',
    500: '#a520a1',
    950: '#000000',
  },
}
SCSS
$custom: #a520a1;
$custom-light: #c46dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#a520a1",
  "rgb": {
    "r": 165,
    "g": 32,
    "b": 161
  },
  "hsl": {
    "h": 301.805,
    "s": 67.513,
    "l": 38.627
  },
  "oklch": {
    "l": 0.51627,
    "c": 0.21363,
    "h": 329.5
  },
  "luminance": 0.11606
}

Semantic roles & 50–950 ramp

primary
#A520A1
secondary
#5CC55F
accent
#EA433D
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #A520A1

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

Preview Lab → · Contrast checker → · Palette generator →

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