#A522A9#A522A9

#A522A9 is a mid, highly saturated purple. Relative luminance 0.120; OKLCH L 52.2% C 0.218 H 326.8°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#A522A9
RGBrgb(165, 34, 169)
HSLhsl(298, 67%, 40%)
HSVhsv(298, 80%, 66%)
CMYKcmyk(2.4%, 79.9%, 0%, 33.7%)
CIE-LABlab(41.23, 66.02, -42.90)
CIE-LCHlch(41.23, 78.73, 326.98°)
OKLaboklab(52.24% 0.1823 -0.1193)
OKLCHoklch(52.24% 0.218 326.8)
XYZxyz(23.2501, 12.0096, 38.6219)
Luminance0.1201 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A522A9 #26A922
analogous
#6122A9 #A522A9 #A9226A
triadic
#A522A9 #A9A522 #22A9A5
tetradic
#A522A9 #A96122 #26A922 #226AA9
square
#A522A9 #A96122 #26A922 #226AA9
split-complementary
#A522A9 #6AA922 #22A961
monochromatic
#420D43 #731876 #A522A9 #D132D6 #DC65E0

Accessibility & contrast

On white

6.17
#A522A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#A522A9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A522A9
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A522A9#FFFFFF#000000##FFFFFF
##A522A91.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AC
Deuteranopia (green-blind)
#4667A6
Tritanopia (blue-blind)
#AA3B66
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #a522a9;
/* rgb */ color: rgb(165, 34, 169);
/* oklch */ color: oklch(52.2% 0.218 326.8);
Tailwind
colors: {
  custom: {
    50: '#c46ec3',
    500: '#a522a9',
    950: '#000000',
  },
}
SCSS
$custom: #a522a9;
$custom-light: #c46ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#a522a9",
  "rgb": {
    "r": 165,
    "g": 34,
    "b": 169
  },
  "hsl": {
    "h": 298.222,
    "s": 66.502,
    "l": 39.804
  },
  "oklch": {
    "l": 0.52237,
    "c": 0.21787,
    "h": 326.8
  },
  "luminance": 0.12008
}

Semantic roles & 50–950 ramp

primary
#A522A9
secondary
#64C561
accent
#E93E43
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #A522A9

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

Preview Lab → · Contrast checker → · Palette generator →

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