#A52FA1#A52FA1

#A52FA1 is a mid, vivid purple. Relative luminance 0.126; OKLCH L 52.8% C 0.199 H 329.4°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#A52FA1
RGBrgb(165, 47, 161)
HSLhsl(302, 56%, 42%)
HSVhsv(302, 72%, 65%)
CMYKcmyk(0%, 71.5%, 2.4%, 35.3%)
CIE-LABlab(42.17, 60.71, -36.63)
CIE-LCHlch(42.17, 70.91, 328.89°)
OKLaboklab(52.76% 0.1711 -0.1012)
OKLCHoklch(52.76% 0.199 329.4)
XYZxyz(22.9664, 12.6073, 34.9351)
Luminance0.1261 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A52FA1 #2FA533
analogous
#6E2FA5 #A52FA1 #A52F66
triadic
#A52FA1 #A1A52F #2FA1A5
tetradic
#A52FA1 #A56E2F #2FA533 #2F66A5
square
#A52FA1 #A56E2F #2FA533 #2F66A5
split-complementary
#A52FA1 #66A52F #2FA56E
monochromatic
#461444 #752173 #A52FA1 #CB47C6 #D876D5

Accessibility & contrast

On white

5.96
#A52FA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A52FA1
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A52FA1#FFFFFF#000000##FFFFFF
##A52FA11.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2059A4
Deuteranopia (green-blind)
#51699E
Tritanopia (blue-blind)
#AB3F65
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #a52fa1;
/* rgb */ color: rgb(165, 47, 161);
/* oklch */ color: oklch(52.8% 0.199 329.4);
Tailwind
colors: {
  custom: {
    50: '#c373bd',
    500: '#a52fa1',
    950: '#000000',
  },
}
SCSS
$custom: #a52fa1;
$custom-light: #c373bd;
$custom-dark: #000000;
JSON
{
  "hex": "#a52fa1",
  "rgb": {
    "r": 165,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 302.034,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.52757,
    "c": 0.19881,
    "h": 329.4
  },
  "luminance": 0.12606
}

Semantic roles & 50–950 ramp

primary
#A52FA1
secondary
#70C072
accent
#DF4E49
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #A52FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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