#A52AA5#A52AA5

#A52AA5 is a mid, highly saturated purple. Relative luminance 0.124; OKLCH L 52.6% C 0.207 H 328.0°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#A52AA5
RGBrgb(165, 42, 165)
HSLhsl(300, 59%, 41%)
HSVhsv(300, 75%, 65%)
CMYKcmyk(0%, 74.5%, 0%, 35.3%)
CIE-LABlab(41.80, 63.04, -39.60)
CIE-LCHlch(41.80, 74.44, 327.86°)
OKLaboklab(52.57% 0.1759 -0.1098)
OKLCHoklch(52.57% 0.207 328)
XYZxyz(23.1363, 12.3736, 36.7598)
Luminance0.1237 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A52AA5 #2AA52A
analogous
#672AA5 #A52AA5 #A52A67
triadic
#A52AA5 #A5A52A #2AA5A5
tetradic
#A52AA5 #A5672A #2AA52A #2A67A5
square
#A52AA5 #A5672A #2AA52A #2A67A5
split-complementary
#A52AA5 #67A52A #2AA567
monochromatic
#431143 #741E74 #A52AA5 #CE3ECE #DA6FDA

Accessibility & contrast

On white

6.04
#A52AA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#A52AA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A52AA5
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A52AA5#FFFFFF#000000##FFFFFF
##A52AA51.006.043.476.04
#FFFFFF6.041.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F58A8
Deuteranopia (green-blind)
#4C68A2
Tritanopia (blue-blind)
#AA3E66
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #a52aa5;
/* rgb */ color: rgb(165, 42, 165);
/* oklch */ color: oklch(52.6% 0.207 328.0);
Tailwind
colors: {
  custom: {
    50: '#c371c0',
    500: '#a52aa5',
    950: '#000000',
  },
}
SCSS
$custom: #a52aa5;
$custom-light: #c371c0;
$custom-dark: #000000;
JSON
{
  "hex": "#a52aa5",
  "rgb": {
    "r": 165,
    "g": 42,
    "b": 165
  },
  "hsl": {
    "h": 300,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.52569,
    "c": 0.20734,
    "h": 328
  },
  "luminance": 0.12372
}

Semantic roles & 50–950 ramp

primary
#A52AA5
secondary
#69C169
accent
#E34545
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #A52AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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