#A52FA7#A52FA7

#A52FA7 is a mid, highly saturated purple. Relative luminance 0.128; OKLCH L 53.1% C 0.204 H 327.3°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#A52FA7
RGBrgb(165, 47, 167)
HSLhsl(299, 56%, 42%)
HSVhsv(299, 72%, 65%)
CMYKcmyk(1.2%, 71.9%, 0%, 34.5%)
CIE-LABlab(42.50, 61.71, -39.69)
CIE-LCHlch(42.50, 73.38, 327.25°)
OKLaboklab(53.1% 0.1712 -0.1101)
OKLCHoklch(53.1% 0.204 327.3)
XYZxyz(23.5083, 12.8240, 37.7888)
Luminance0.1282 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A52FA7 #31A72F
analogous
#692FA7 #A52FA7 #A72F6D
triadic
#A52FA7 #A7A52F #2FA7A5
tetradic
#A52FA7 #A7692F #31A72F #2F6DA7
square
#A52FA7 #A7692F #31A72F #2F6DA7
split-complementary
#A52FA7 #6DA72F #2FA769
monochromatic
#471447 #762277 #A52FA7 #C948CB #D778D9

Accessibility & contrast

On white

5.89
#A52FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#A52FA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A52FA7
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A52FA7#FFFFFF#000000##FFFFFF
##A52FA71.005.893.565.89
#FFFFFF5.891.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#165BAA
Deuteranopia (green-blind)
#4D6AA4
Tritanopia (blue-blind)
#AA4268
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #a52fa7;
/* rgb */ color: rgb(165, 47, 167);
/* oklch */ color: oklch(53.1% 0.204 327.3);
Tailwind
colors: {
  custom: {
    50: '#c373c1',
    500: '#a52fa7',
    950: '#000000',
  },
}
SCSS
$custom: #a52fa7;
$custom-light: #c373c1;
$custom-dark: #000000;
JSON
{
  "hex": "#a52fa7",
  "rgb": {
    "r": 165,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 299,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.53101,
    "c": 0.20353,
    "h": 327.3
  },
  "luminance": 0.12822
}

Semantic roles & 50–950 ramp

primary
#A52FA7
secondary
#72C171
accent
#DF484B
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #A52FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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