#A521AF#A521AF

#A521AF is a mid, highly saturated purple. Relative luminance 0.122; OKLCH L 52.5% C 0.223 H 324.9°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#A521AF
RGBrgb(165, 33, 175)
HSLhsl(296, 68%, 41%)
HSVhsv(296, 81%, 69%)
CMYKcmyk(5.7%, 81.1%, 0%, 31.4%)
CIE-LABlab(41.51, 67.27, -46.03)
CIE-LCHlch(41.51, 81.51, 325.62°)
OKLaboklab(52.55% 0.1826 -0.1284)
OKLCHoklch(52.55% 0.223 324.9)
XYZxyz(23.7982, 12.1838, 41.6474)
Luminance0.1218 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A521AF #2BAF21
analogous
#5E21AF #A521AF #AF2172
triadic
#A521AF #AFA521 #21AFA5
tetradic
#A521AF #AF5E21 #2BAF21 #2172AF
square
#A521AF #AF5E21 #2BAF21 #2172AF
split-complementary
#A521AF #72AF21 #21AF5E
monochromatic
#440E48 #74177C #A521AF #CD34D9 #DA68E3

Accessibility & contrast

On white

6.11
#A521AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#A521AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A521AF
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A521AF#FFFFFF#000000##FFFFFF
##A521AF1.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B3
Deuteranopia (green-blind)
#4167AC
Tritanopia (blue-blind)
#A93E69
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #a521af;
/* rgb */ color: rgb(165, 33, 175);
/* oklch */ color: oklch(52.5% 0.223 324.9);
Tailwind
colors: {
  custom: {
    50: '#c46ec7',
    500: '#a521af',
    950: '#000000',
  },
}
SCSS
$custom: #a521af;
$custom-light: #c46ec7;
$custom-dark: #000000;
JSON
{
  "hex": "#a521af",
  "rgb": {
    "r": 165,
    "g": 33,
    "b": 175
  },
  "hsl": {
    "h": 295.775,
    "s": 68.269,
    "l": 40.784
  },
  "oklch": {
    "l": 0.52548,
    "c": 0.22322,
    "h": 324.9
  },
  "luminance": 0.12182
}

Semantic roles & 50–950 ramp

primary
#A521AF
secondary
#6BC864
accent
#EB3D49
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130813
muted
#827B82

Preview Lab

Preview with #A521AF

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

Preview Lab → · Contrast checker → · Palette generator →

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