#A522A7#A522A7

#A522A7 is a mid, highly saturated purple. Relative luminance 0.119; OKLCH L 52.1% C 0.216 H 327.5°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#A522A7
RGBrgb(165, 34, 167)
HSLhsl(299, 66%, 39%)
HSVhsv(299, 80%, 65%)
CMYKcmyk(1.2%, 79.6%, 0%, 34.5%)
CIE-LABlab(41.11, 65.69, -41.90)
CIE-LCHlch(41.11, 77.91, 327.47°)
OKLaboklab(52.11% 0.1824 -0.1164)
OKLCHoklch(52.11% 0.216 327.5)
XYZxyz(23.0638, 11.9351, 37.6407)
Luminance0.1193 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A522A7 #24A722
analogous
#6322A7 #A522A7 #A72267
triadic
#A522A7 #A7A522 #22A7A5
tetradic
#A522A7 #A76322 #24A722 #2267A7
square
#A522A7 #A76322 #24A722 #2267A7
split-complementary
#A522A7 #67A722 #22A763
monochromatic
#410D41 #731874 #A522A7 #D331D5 #DE64DF

Accessibility & contrast

On white

6.20
#A522A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A522A7
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A522A7#FFFFFF#000000##FFFFFF
##A522A71.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AA
Deuteranopia (green-blind)
#4767A4
Tritanopia (blue-blind)
#AA3A65
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #a522a7;
/* rgb */ color: rgb(165, 34, 167);
/* oklch */ color: oklch(52.1% 0.216 327.5);
Tailwind
colors: {
  custom: {
    50: '#c46ec2',
    500: '#a522a7',
    950: '#000000',
  },
}
SCSS
$custom: #a522a7;
$custom-light: #c46ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#a522a7",
  "rgb": {
    "r": 165,
    "g": 34,
    "b": 167
  },
  "hsl": {
    "h": 299.098,
    "s": 66.169,
    "l": 39.412
  },
  "oklch": {
    "l": 0.52114,
    "c": 0.21637,
    "h": 327.5
  },
  "luminance": 0.11933
}

Semantic roles & 50–950 ramp

primary
#A522A7
secondary
#62C560
accent
#E93F41
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #A522A7

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

Preview Lab → · Contrast checker → · Palette generator →

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