#A522A6#A522A6

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

Color values

HEX#A522A6
RGBrgb(165, 34, 166)
HSLhsl(300, 66%, 39%)
HSVhsv(300, 80%, 65%)
CMYKcmyk(0.6%, 79.5%, 0%, 34.9%)
CIE-LABlab(41.05, 65.53, -41.39)
CIE-LCHlch(41.05, 77.51, 327.72°)
OKLaboklab(52.05% 0.1825 -0.1149)
OKLCHoklch(52.05% 0.216 327.8)
XYZxyz(22.9717, 11.8983, 37.1557)
Luminance0.1190 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A522A6 #23A622
analogous
#6322A6 #A522A6 #A62265
triadic
#A522A6 #A6A522 #22A6A5
tetradic
#A522A6 #A66322 #23A622 #2265A6
square
#A522A6 #A66322 #23A622 #2265A6
split-complementary
#A522A6 #65A622 #22A663
monochromatic
#400D40 #731873 #A522A6 #D330D5 #DE63DF

Accessibility & contrast

On white

6.21
#A522A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#A522A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A522A6
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A522A6#FFFFFF#000000##FFFFFF
##A522A61.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056A9
Deuteranopia (green-blind)
#4866A3
Tritanopia (blue-blind)
#AA3A64
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #a522a6;
/* rgb */ color: rgb(165, 34, 166);
/* oklch */ color: oklch(52.1% 0.216 327.8);
Tailwind
colors: {
  custom: {
    50: '#c46ec1',
    500: '#a522a6',
    950: '#000000',
  },
}
SCSS
$custom: #a522a6;
$custom-light: #c46ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#a522a6",
  "rgb": {
    "r": 165,
    "g": 34,
    "b": 166
  },
  "hsl": {
    "h": 299.545,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.52054,
    "c": 0.21562,
    "h": 327.8
  },
  "luminance": 0.11897
}

Semantic roles & 50–950 ramp

primary
#A522A6
secondary
#60C45F
accent
#E93F40
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #A522A6

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

Preview Lab → · Contrast checker → · Palette generator →

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