#A521A2#A521A2

#A521A2 is a mid, highly saturated purple. Relative luminance 0.117; OKLCH L 51.7% C 0.214 H 329.2°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#A521A2
RGBrgb(165, 33, 162)
HSLhsl(301, 67%, 39%)
HSVhsv(301, 80%, 65%)
CMYKcmyk(0%, 80%, 1.8%, 35.3%)
CIE-LABlab(40.73, 65.15, -39.51)
CIE-LCHlch(40.73, 76.19, 328.77°)
OKLaboklab(51.75% 0.1833 -0.1094)
OKLCHoklch(51.75% 0.214 329.2)
XYZxyz(22.5823, 11.6974, 35.2439)
Luminance0.1170 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A521A2 #21A524
analogous
#6621A5 #A521A2 #A52160
triadic
#A521A2 #A2A521 #21A2A5
tetradic
#A521A2 #A56621 #21A524 #2160A5
square
#A521A2 #A56621 #21A524 #2160A5
split-complementary
#A521A2 #60A521 #21A566
monochromatic
#3F0D3E #721770 #A521A2 #D52ED1 #DF61DD

Accessibility & contrast

On white

6.29
#A521A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#A521A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A521A2
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A521A2#FFFFFF#000000##FFFFFF
##A521A21.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A5
Deuteranopia (green-blind)
#4A669F
Tritanopia (blue-blind)
#AB3762
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a521a2;
/* rgb */ color: rgb(165, 33, 162);
/* oklch */ color: oklch(51.7% 0.214 329.2);
Tailwind
colors: {
  custom: {
    50: '#c46ebe',
    500: '#a521a2',
    950: '#000000',
  },
}
SCSS
$custom: #a521a2;
$custom-light: #c46ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#a521a2",
  "rgb": {
    "r": 165,
    "g": 33,
    "b": 162
  },
  "hsl": {
    "h": 301.364,
    "s": 66.667,
    "l": 38.824
  },
  "oklch": {
    "l": 0.5175,
    "c": 0.21351,
    "h": 329.2
  },
  "luminance": 0.11696
}

Semantic roles & 50–950 ramp

primary
#A521A2
secondary
#5EC460
accent
#EA423E
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #A521A2

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

Preview Lab → · Contrast checker → · Palette generator →

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