#A52AAB#A52AAB

#A52AAB is a mid, highly saturated purple. Relative luminance 0.126; OKLCH L 52.9% C 0.212 H 326.0°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#A52AAB
RGBrgb(165, 42, 171)
HSLhsl(297, 61%, 42%)
HSVhsv(297, 75%, 67%)
CMYKcmyk(3.5%, 75.4%, 0%, 32.9%)
CIE-LABlab(42.15, 64.04, -42.63)
CIE-LCHlch(42.15, 76.93, 326.35°)
OKLaboklab(52.93% 0.1758 -0.1186)
OKLCHoklch(52.93% 0.212 326)
XYZxyz(23.6952, 12.5971, 39.7036)
Luminance0.1260 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A52AAB #30AB2A
analogous
#652AAB #A52AAB #AB2A71
triadic
#A52AAB #ABA52A #2AABA5
tetradic
#A52AAB #AB652A #30AB2A #2A71AB
square
#A52AAB #AB652A #30AB2A #2A71AB
split-complementary
#A52AAB #71AB2A #2AAB65
monochromatic
#461249 #761E7A #A52AAB #CA42D1 #D873DD

Accessibility & contrast

On white

5.97
#A52AAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#A52AAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A52AAB
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A52AAB#FFFFFF#000000##FFFFFF
##A52AAB1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AAE
Deuteranopia (green-blind)
#4869A8
Tritanopia (blue-blind)
#A94169
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #a52aab;
/* rgb */ color: rgb(165, 42, 171);
/* oklch */ color: oklch(52.9% 0.212 326.0);
Tailwind
colors: {
  custom: {
    50: '#c471c4',
    500: '#a52aab',
    950: '#000000',
  },
}
SCSS
$custom: #a52aab;
$custom-light: #c471c4;
$custom-dark: #000000;
JSON
{
  "hex": "#a52aab",
  "rgb": {
    "r": 165,
    "g": 42,
    "b": 171
  },
  "hsl": {
    "h": 297.209,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.52927,
    "c": 0.212,
    "h": 326
  },
  "luminance": 0.12596
}

Semantic roles & 50–950 ramp

primary
#A52AAB
secondary
#71C46D
accent
#E4444C
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #A52AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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