#A522A1#A522A1

#A522A1 is a mid, highly saturated purple. Relative luminance 0.117; OKLCH L 51.8% C 0.212 H 329.5°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#A522A1
RGBrgb(165, 34, 161)
HSLhsl(302, 66%, 39%)
HSVhsv(302, 79%, 65%)
CMYKcmyk(0%, 79.4%, 2.4%, 35.3%)
CIE-LABlab(40.77, 64.73, -38.85)
CIE-LCHlch(40.77, 75.49, 329.02°)
OKLaboklab(51.76% 0.1826 -0.1075)
OKLCHoklch(51.76% 0.212 329.5)
XYZxyz(22.5220, 11.7184, 34.7870)
Luminance0.1172 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A522A1 #22A526
analogous
#6822A5 #A522A1 #A52260
triadic
#A522A1 #A1A522 #22A1A5
tetradic
#A522A1 #A56822 #22A526 #2260A5
square
#A522A1 #A56822 #22A526 #2260A5
split-complementary
#A522A1 #60A522 #22A568
monochromatic
#400D3E #72186F #A522A1 #D430CF #DF63DB

Accessibility & contrast

On white

6.28
#A522A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A522A1
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A522A1#FFFFFF#000000##FFFFFF
##A522A11.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0455A4
Deuteranopia (green-blind)
#4B669E
Tritanopia (blue-blind)
#AB3762
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a522a1;
/* rgb */ color: rgb(165, 34, 161);
/* oklch */ color: oklch(51.8% 0.212 329.5);
Tailwind
colors: {
  custom: {
    50: '#c46ebd',
    500: '#a522a1',
    950: '#000000',
  },
}
SCSS
$custom: #a522a1;
$custom-light: #c46ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#a522a1",
  "rgb": {
    "r": 165,
    "g": 34,
    "b": 161
  },
  "hsl": {
    "h": 301.832,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.51755,
    "c": 0.21193,
    "h": 329.5
  },
  "luminance": 0.11717
}

Semantic roles & 50–950 ramp

primary
#A522A1
secondary
#5FC462
accent
#E9443F
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #A522A1

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

Preview Lab → · Contrast checker → · Palette generator →

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