#A520A6#A520A6

#A520A6 is a mid, highly saturated purple. Relative luminance 0.118; OKLCH L 51.9% C 0.217 H 327.8°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#A520A6
RGBrgb(165, 32, 166)
HSLhsl(300, 68%, 39%)
HSVhsv(300, 81%, 65%)
CMYKcmyk(0.6%, 80.7%, 0%, 34.9%)
CIE-LABlab(40.88, 66.04, -41.68)
CIE-LCHlch(40.88, 78.09, 327.75°)
OKLaboklab(51.93% 0.1839 -0.1157)
OKLCHoklch(51.93% 0.217 327.8)
XYZxyz(22.9162, 11.7873, 37.1372)
Luminance0.1179 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A520A6 #21A620
analogous
#6220A6 #A520A6 #A62064
triadic
#A520A6 #A6A520 #20A6A5
tetradic
#A520A6 #A66220 #21A620 #2064A6
square
#A520A6 #A66220 #21A620 #2064A6
split-complementary
#A520A6 #64A620 #20A662
monochromatic
#3F0C3F #721673 #A520A6 #D52DD6 #DF60E0

Accessibility & contrast

On white

6.26
#A520A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A520A6
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A520A6#FFFFFF#000000##FFFFFF
##A520A61.006.263.366.26
#FFFFFF6.261.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056A9
Deuteranopia (green-blind)
#4766A3
Tritanopia (blue-blind)
#AA3864
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a520a6;
/* rgb */ color: rgb(165, 32, 166);
/* oklch */ color: oklch(51.9% 0.217 327.8);
Tailwind
colors: {
  custom: {
    50: '#c46ec1',
    500: '#a520a6',
    950: '#000000',
  },
}
SCSS
$custom: #a520a6;
$custom-light: #c46ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#a520a6",
  "rgb": {
    "r": 165,
    "g": 32,
    "b": 166
  },
  "hsl": {
    "h": 299.552,
    "s": 67.677,
    "l": 38.824
  },
  "oklch": {
    "l": 0.51927,
    "c": 0.21729,
    "h": 327.8
  },
  "luminance": 0.11786
}

Semantic roles & 50–950 ramp

primary
#A520A6
secondary
#5EC55D
accent
#EB3D3F
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #A520A6

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

Preview Lab → · Contrast checker → · Palette generator →

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