#A522A8#A522A8

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

Color values

HEX#A522A8
RGBrgb(165, 34, 168)
HSLhsl(299, 66%, 40%)
HSVhsv(299, 80%, 66%)
CMYKcmyk(1.8%, 79.8%, 0%, 34.1%)
CIE-LABlab(41.17, 65.85, -42.40)
CIE-LCHlch(41.17, 78.32, 327.22°)
OKLaboklab(52.18% 0.1824 -0.1178)
OKLCHoklch(52.18% 0.217 327.1)
XYZxyz(23.1566, 11.9722, 38.1294)
Luminance0.1197 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A522A8 #25A822
analogous
#6222A8 #A522A8 #A82268
triadic
#A522A8 #A8A522 #22A8A5
tetradic
#A522A8 #A86222 #25A822 #2268A8
square
#A522A8 #A86222 #25A822 #2268A8
split-complementary
#A522A8 #68A822 #22A862
monochromatic
#410D42 #731875 #A522A8 #D232D5 #DD65E0

Accessibility & contrast

On white

6.19
#A522A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#A522A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A522A8
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A522A8#FFFFFF#000000##FFFFFF
##A522A81.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AB
Deuteranopia (green-blind)
#4767A5
Tritanopia (blue-blind)
#AA3B66
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #a522a8;
/* rgb */ color: rgb(165, 34, 168);
/* oklch */ color: oklch(52.2% 0.217 327.1);
Tailwind
colors: {
  custom: {
    50: '#c46ec2',
    500: '#a522a8',
    950: '#000000',
  },
}
SCSS
$custom: #a522a8;
$custom-light: #c46ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#a522a8",
  "rgb": {
    "r": 165,
    "g": 34,
    "b": 168
  },
  "hsl": {
    "h": 298.657,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.52175,
    "c": 0.21712,
    "h": 327.1
  },
  "luminance": 0.11971
}

Semantic roles & 50–950 ramp

primary
#A522A8
secondary
#63C561
accent
#E93F42
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #A522A8

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

Preview Lab → · Contrast checker → · Palette generator →

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