#A52FA6#A52FA6

#A52FA6 is a mid, highly saturated purple. Relative luminance 0.128; OKLCH L 53.0% C 0.203 H 327.6°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#A52FA6
RGBrgb(165, 47, 166)
HSLhsl(299, 56%, 42%)
HSVhsv(299, 72%, 65%)
CMYKcmyk(0.6%, 71.7%, 0%, 34.9%)
CIE-LABlab(42.44, 61.55, -39.19)
CIE-LCHlch(42.44, 72.96, 327.52°)
OKLaboklab(53.04% 0.1712 -0.1086)
OKLCHoklch(53.04% 0.203 327.6)
XYZxyz(23.4162, 12.7872, 37.3038)
Luminance0.1279 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A52FA6 #30A62F
analogous
#6A2FA6 #A52FA6 #A62F6C
triadic
#A52FA6 #A6A52F #2FA6A5
tetradic
#A52FA6 #A66A2F #30A62F #2F6CA6
square
#A52FA6 #A66A2F #30A62F #2F6CA6
split-complementary
#A52FA6 #6CA62F #2FA66A
monochromatic
#461447 #762176 #A52FA6 #CA47CB #D877D8

Accessibility & contrast

On white

5.90
#A52FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A52FA6
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A52FA6#FFFFFF#000000##FFFFFF
##A52FA61.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#185AA9
Deuteranopia (green-blind)
#4E69A3
Tritanopia (blue-blind)
#AA4168
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #a52fa6;
/* rgb */ color: rgb(165, 47, 166);
/* oklch */ color: oklch(53.0% 0.203 327.6);
Tailwind
colors: {
  custom: {
    50: '#c373c1',
    500: '#a52fa6',
    950: '#000000',
  },
}
SCSS
$custom: #a52fa6;
$custom-light: #c373c1;
$custom-dark: #000000;
JSON
{
  "hex": "#a52fa6",
  "rgb": {
    "r": 165,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 299.496,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.53043,
    "c": 0.20274,
    "h": 327.6
  },
  "luminance": 0.12786
}

Semantic roles & 50–950 ramp

primary
#A52FA6
secondary
#71C170
accent
#DF494A
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #A52FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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