#A52AA1#A52AA1

#A52AA1 is a mid, highly saturated purple. Relative luminance 0.122; OKLCH L 52.3% C 0.204 H 329.4°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#A52AA1
RGBrgb(165, 42, 161)
HSLhsl(302, 59%, 41%)
HSVhsv(302, 75%, 65%)
CMYKcmyk(0%, 74.5%, 2.4%, 35.3%)
CIE-LABlab(41.58, 62.38, -37.56)
CIE-LCHlch(41.58, 72.82, 328.95°)
OKLaboklab(52.34% 0.1759 -0.1038)
OKLCHoklch(52.34% 0.204 329.4)
XYZxyz(22.7779, 12.2302, 34.8723)
Luminance0.1223 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A52AA1 #2AA52E
analogous
#6B2AA5 #A52AA1 #A52A63
triadic
#A52AA1 #A1A52A #2AA1A5
tetradic
#A52AA1 #A56B2A #2AA52E #2A63A5
square
#A52AA1 #A56B2A #2AA52E #2A63A5
split-complementary
#A52AA1 #63A52A #2AA56B
monochromatic
#431142 #741E71 #A52AA1 #CE3EC9 #DA6FD7

Accessibility & contrast

On white

6.09
#A52AA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#A52AA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A52AA1
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A52AA1#FFFFFF#000000##FFFFFF
##A52AA11.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1758A4
Deuteranopia (green-blind)
#4E689E
Tritanopia (blue-blind)
#AB3C63
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #a52aa1;
/* rgb */ color: rgb(165, 42, 161);
/* oklch */ color: oklch(52.3% 0.204 329.4);
Tailwind
colors: {
  custom: {
    50: '#c371bd',
    500: '#a52aa1',
    950: '#000000',
  },
}
SCSS
$custom: #a52aa1;
$custom-light: #c371bd;
$custom-dark: #000000;
JSON
{
  "hex": "#a52aa1",
  "rgb": {
    "r": 165,
    "g": 42,
    "b": 161
  },
  "hsl": {
    "h": 301.951,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.52337,
    "c": 0.20427,
    "h": 329.4
  },
  "luminance": 0.12228
}

Semantic roles & 50–950 ramp

primary
#A52AA1
secondary
#69C16C
accent
#E34A45
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #A52AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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