#A52FA8#A52FA8

#A52FA8 is a mid, highly saturated purple. Relative luminance 0.129; OKLCH L 53.2% C 0.204 H 326.9°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#A52FA8
RGBrgb(165, 47, 168)
HSLhsl(299, 56%, 42%)
HSVhsv(299, 72%, 66%)
CMYKcmyk(1.8%, 72%, 0%, 34.1%)
CIE-LABlab(42.55, 61.88, -40.20)
CIE-LCHlch(42.55, 73.79, 326.99°)
OKLaboklab(53.16% 0.1712 -0.1115)
OKLCHoklch(53.16% 0.204 326.9)
XYZxyz(23.6011, 12.8611, 38.2776)
Luminance0.1286 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A52FA8 #32A82F
analogous
#682FA8 #A52FA8 #A82F6F
triadic
#A52FA8 #A8A52F #2FA8A5
tetradic
#A52FA8 #A8682F #32A82F #2F6FA8
square
#A52FA8 #A8682F #32A82F #2F6FA8
split-complementary
#A52FA8 #6FA82F #2FA868
monochromatic
#471448 #762278 #A52FA8 #C948CC #D778D9

Accessibility & contrast

On white

5.88
#A52FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#A52FA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A52FA8
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A52FA8#FFFFFF#000000##FFFFFF
##A52FA81.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#145BAB
Deuteranopia (green-blind)
#4D6AA5
Tritanopia (blue-blind)
#AA4269
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #a52fa8;
/* rgb */ color: rgb(165, 47, 168);
/* oklch */ color: oklch(53.2% 0.204 326.9);
Tailwind
colors: {
  custom: {
    50: '#c373c2',
    500: '#a52fa8',
    950: '#000000',
  },
}
SCSS
$custom: #a52fa8;
$custom-light: #c373c2;
$custom-dark: #000000;
JSON
{
  "hex": "#a52fa8",
  "rgb": {
    "r": 165,
    "g": 47,
    "b": 168
  },
  "hsl": {
    "h": 298.512,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.5316,
    "c": 0.20433,
    "h": 326.9
  },
  "luminance": 0.1286
}

Semantic roles & 50–950 ramp

primary
#A52FA8
secondary
#73C171
accent
#E0484C
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130912
muted
#827B81

Preview Lab

Preview with #A52FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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