#A520A7#A520A7

#A520A7 is a mid, highly saturated purple. Relative luminance 0.118; OKLCH L 52.0% C 0.218 H 327.5°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#A520A7
RGBrgb(165, 32, 167)
HSLhsl(299, 68%, 39%)
HSVhsv(299, 81%, 65%)
CMYKcmyk(1.2%, 80.8%, 0%, 34.5%)
CIE-LABlab(40.94, 66.20, -42.18)
CIE-LCHlch(40.94, 78.50, 327.50°)
OKLaboklab(51.99% 0.1839 -0.1172)
OKLCHoklch(51.99% 0.218 327.5)
XYZxyz(23.0083, 11.8241, 37.6222)
Luminance0.1182 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A520A7 #22A720
analogous
#6220A7 #A520A7 #A72066
triadic
#A520A7 #A7A520 #20A7A5
tetradic
#A520A7 #A76220 #22A720 #2066A7
square
#A520A7 #A76220 #22A720 #2066A7
split-complementary
#A520A7 #66A720 #20A762
monochromatic
#400C40 #721674 #A520A7 #D42DD7 #DF61E1

Accessibility & contrast

On white

6.24
#A520A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#A520A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A520A7
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A520A7#FFFFFF#000000##FFFFFF
##A520A71.006.243.366.24
#FFFFFF6.241.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AA
Deuteranopia (green-blind)
#4766A4
Tritanopia (blue-blind)
#AA3965
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a520a7;
/* rgb */ color: rgb(165, 32, 167);
/* oklch */ color: oklch(52.0% 0.218 327.5);
Tailwind
colors: {
  custom: {
    50: '#c46ec2',
    500: '#a520a7',
    950: '#000000',
  },
}
SCSS
$custom: #a520a7;
$custom-light: #c46ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#a520a7",
  "rgb": {
    "r": 165,
    "g": 32,
    "b": 167
  },
  "hsl": {
    "h": 299.111,
    "s": 67.839,
    "l": 39.02
  },
  "oklch": {
    "l": 0.51988,
    "c": 0.21803,
    "h": 327.5
  },
  "luminance": 0.11822
}

Semantic roles & 50–950 ramp

primary
#A520A7
secondary
#5FC55D
accent
#EB3D40
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #A520A7

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

Preview Lab → · Contrast checker → · Palette generator →

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