#A522A5#A522A5

#A522A5 is a mid, highly saturated purple. Relative luminance 0.119; OKLCH L 52.0% C 0.215 H 328.1°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#A522A5
RGBrgb(165, 34, 165)
HSLhsl(300, 66%, 39%)
HSVhsv(300, 79%, 65%)
CMYKcmyk(0%, 79.4%, 0%, 35.3%)
CIE-LABlab(41.00, 65.37, -40.89)
CIE-LCHlch(41.00, 77.10, 327.97°)
OKLaboklab(51.99% 0.1825 -0.1134)
OKLCHoklch(51.99% 0.215 328.1)
XYZxyz(22.8803, 11.8617, 36.6745)
Luminance0.1186 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A522A5 #22A522
analogous
#6422A5 #A522A5 #A52264
triadic
#A522A5 #A5A522 #22A5A5
tetradic
#A522A5 #A56422 #22A522 #2264A5
square
#A522A5 #A56422 #22A522 #2264A5
split-complementary
#A522A5 #64A522 #22A564
monochromatic
#400D40 #721872 #A522A5 #D430D4 #DF63DF

Accessibility & contrast

On white

6.23
#A522A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#A522A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A522A5
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A522A5#FFFFFF#000000##FFFFFF
##A522A51.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056A8
Deuteranopia (green-blind)
#4966A2
Tritanopia (blue-blind)
#AA3964
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #a522a5;
/* rgb */ color: rgb(165, 34, 165);
/* oklch */ color: oklch(52.0% 0.215 328.1);
Tailwind
colors: {
  custom: {
    50: '#c46ec0',
    500: '#a522a5',
    950: '#000000',
  },
}
SCSS
$custom: #a522a5;
$custom-light: #c46ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#a522a5",
  "rgb": {
    "r": 165,
    "g": 34,
    "b": 165
  },
  "hsl": {
    "h": 300,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.51993,
    "c": 0.21488,
    "h": 328.1
  },
  "luminance": 0.1186
}

Semantic roles & 50–950 ramp

primary
#A522A5
secondary
#5FC45F
accent
#E93F3F
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #A522A5

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

Preview Lab → · Contrast checker → · Palette generator →

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