#A52AA6#A52AA6

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

Color values

HEX#A52AA6
RGBrgb(165, 42, 166)
HSLhsl(300, 60%, 41%)
HSVhsv(300, 75%, 65%)
CMYKcmyk(0.6%, 74.7%, 0%, 34.9%)
CIE-LABlab(41.86, 63.20, -40.11)
CIE-LCHlch(41.86, 74.85, 327.60°)
OKLaboklab(52.63% 0.1759 -0.1112)
OKLCHoklch(52.63% 0.208 327.7)
XYZxyz(23.2276, 12.4101, 37.2410)
Luminance0.1241 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A52AA6 #2BA62A
analogous
#672AA6 #A52AA6 #A62A69
triadic
#A52AA6 #A6A52A #2AA6A5
tetradic
#A52AA6 #A6672A #2BA62A #2A69A6
square
#A52AA6 #A6672A #2BA62A #2A69A6
split-complementary
#A52AA6 #69A62A #2AA667
monochromatic
#441144 #741E75 #A52AA6 #CD3FCE #DA70DB

Accessibility & contrast

On white

6.03
#A52AA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#A52AA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A52AA6
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A52AA6#FFFFFF#000000##FFFFFF
##A52AA61.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a52aa6;
/* rgb */ color: rgb(165, 42, 166);
/* oklch */ color: oklch(52.6% 0.208 327.7);
Tailwind
colors: {
  custom: {
    50: '#c371c1',
    500: '#a52aa6',
    950: '#000000',
  },
}
SCSS
$custom: #a52aa6;
$custom-light: #c371c1;
$custom-dark: #000000;
JSON
{
  "hex": "#a52aa6",
  "rgb": {
    "r": 165,
    "g": 42,
    "b": 166
  },
  "hsl": {
    "h": 299.516,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.52628,
    "c": 0.20811,
    "h": 327.7
  },
  "luminance": 0.12408
}

Semantic roles & 50–950 ramp

primary
#A52AA6
secondary
#6BC26A
accent
#E34546
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #A52AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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