#A520A8#A520A8

#A520A8 is a mid, highly saturated purple. Relative luminance 0.119; OKLCH L 52.0% C 0.219 H 327.2°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#A520A8
RGBrgb(165, 32, 168)
HSLhsl(299, 68%, 39%)
HSVhsv(299, 81%, 66%)
CMYKcmyk(1.8%, 81%, 0%, 34.1%)
CIE-LABlab(40.99, 66.37, -42.68)
CIE-LCHlch(40.99, 78.91, 327.25°)
OKLaboklab(52.05% 0.1838 -0.1187)
OKLCHoklch(52.05% 0.219 327.2)
XYZxyz(23.1011, 11.8612, 38.1109)
Luminance0.1186 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A520A8 #23A820
analogous
#6120A8 #A520A8 #A82067
triadic
#A520A8 #A8A520 #20A8A5
tetradic
#A520A8 #A86120 #23A820 #2067A8
square
#A520A8 #A86120 #23A820 #2067A8
split-complementary
#A520A8 #67A820 #20A861
monochromatic
#400C41 #731675 #A520A8 #D32ED7 #DE61E1

Accessibility & contrast

On white

6.23
#A520A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#A520A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A520A8
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A520A8#FFFFFF#000000##FFFFFF
##A520A81.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AB
Deuteranopia (green-blind)
#4666A5
Tritanopia (blue-blind)
#AA3A65
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #a520a8;
/* rgb */ color: rgb(165, 32, 168);
/* oklch */ color: oklch(52.0% 0.219 327.2);
Tailwind
colors: {
  custom: {
    50: '#c46ec2',
    500: '#a520a8',
    950: '#000000',
  },
}
SCSS
$custom: #a520a8;
$custom-light: #c46ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#a520a8",
  "rgb": {
    "r": 165,
    "g": 32,
    "b": 168
  },
  "hsl": {
    "h": 298.676,
    "s": 68,
    "l": 39.216
  },
  "oklch": {
    "l": 0.5205,
    "c": 0.21878,
    "h": 327.2
  },
  "luminance": 0.1186
}

Semantic roles & 50–950 ramp

primary
#A520A8
secondary
#60C65E
accent
#EB3D41
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #A520A8

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

Preview Lab → · Contrast checker → · Palette generator →

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