#A52FA0#A52FA0

#A52FA0 is a mid, vivid purple. Relative luminance 0.126; OKLCH L 52.7% C 0.198 H 329.8°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#A52FA0
RGBrgb(165, 47, 160)
HSLhsl(303, 56%, 42%)
HSVhsv(303, 72%, 65%)
CMYKcmyk(0%, 71.5%, 3%, 35.3%)
CIE-LABlab(42.11, 60.55, -36.12)
CIE-LCHlch(42.11, 70.50, 329.18°)
OKLaboklab(52.7% 0.1711 -0.0997)
OKLCHoklch(52.7% 0.198 329.8)
XYZxyz(22.8786, 12.5722, 34.4726)
Luminance0.1257 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A52FA0 #2FA534
analogous
#6F2FA5 #A52FA0 #A52F65
triadic
#A52FA0 #A0A52F #2FA0A5
tetradic
#A52FA0 #A56F2F #2FA534 #2F65A5
square
#A52FA0 #A56F2F #2FA534 #2F65A5
split-complementary
#A52FA0 #65A52F #2FA56F
monochromatic
#461444 #752172 #A52FA0 #CB47C5 #D876D4

Accessibility & contrast

On white

5.98
#A52FA0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#A52FA0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A52FA0
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A52FA0#FFFFFF#000000##FFFFFF
##A52FA01.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2159A3
Deuteranopia (green-blind)
#51699D
Tritanopia (blue-blind)
#AB3E64
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #a52fa0;
/* rgb */ color: rgb(165, 47, 160);
/* oklch */ color: oklch(52.7% 0.198 329.8);
Tailwind
colors: {
  custom: {
    50: '#c373bc',
    500: '#a52fa0',
    950: '#000000',
  },
}
SCSS
$custom: #a52fa0;
$custom-light: #c373bc;
$custom-dark: #000000;
JSON
{
  "hex": "#a52fa0",
  "rgb": {
    "r": 165,
    "g": 47,
    "b": 160
  },
  "hsl": {
    "h": 302.542,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.527,
    "c": 0.19803,
    "h": 329.8
  },
  "luminance": 0.1257
}

Semantic roles & 50–950 ramp

primary
#A52FA0
secondary
#70C073
accent
#DF4F49
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #A52FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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