#A52A97#A52A97

#A52A97 is a mid, vivid purple. Relative luminance 0.119; OKLCH L 51.8% C 0.197 H 333.2°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#A52A97
RGBrgb(165, 42, 151)
HSLhsl(307, 59%, 41%)
HSVhsv(307, 75%, 65%)
CMYKcmyk(0%, 74.5%, 8.5%, 35.3%)
CIE-LABlab(41.04, 60.80, -32.39)
CIE-LCHlch(41.04, 68.89, 331.96°)
OKLaboklab(51.78% 0.1756 -0.0889)
OKLCHoklch(51.78% 0.197 333.2)
XYZxyz(21.9311, 11.8915, 30.4124)
Luminance0.1189 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A52A97 #2AA538
analogous
#752AA5 #A52A97 #A52A5A
triadic
#A52A97 #97A52A #2A97A5
tetradic
#A52A97 #A5752A #2AA538 #2A5AA5
square
#A52A97 #A5752A #2AA538 #2A5AA5
split-complementary
#A52A97 #5AA52A #2AA575
monochromatic
#43113E #741E6A #A52A97 #CE3EBE #DA6FCE

Accessibility & contrast

On white

6.22
#A52A97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#A52A97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A52A97
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A52A97#FFFFFF#000000##FFFFFF
##A52A971.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25569A
Deuteranopia (green-blind)
#546794
Tritanopia (blue-blind)
#AD375E
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #a52a97;
/* rgb */ color: rgb(165, 42, 151);
/* oklch */ color: oklch(51.8% 0.197 333.2);
Tailwind
colors: {
  custom: {
    50: '#c371b6',
    500: '#a52a97',
    950: '#000000',
  },
}
SCSS
$custom: #a52a97;
$custom-light: #c371b6;
$custom-dark: #000000;
JSON
{
  "hex": "#a52a97",
  "rgb": {
    "r": 165,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 306.829,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.51778,
    "c": 0.1968,
    "h": 333.2
  },
  "luminance": 0.1189
}

Semantic roles & 50–950 ramp

primary
#A52A97
secondary
#69C173
accent
#E35745
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #A52A97

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

Preview Lab → · Contrast checker → · Palette generator →

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