#A52AC7#A52AC7

#A52AC7 is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.7% C 0.235 H 317.5°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#A52AC7
RGBrgb(165, 42, 199)
HSLhsl(287, 65%, 47%)
HSVhsv(287, 79%, 78%)
CMYKcmyk(17.1%, 78.9%, 0%, 22%)
CIE-LABlab(43.92, 69.01, -56.25)
CIE-LCHlch(43.92, 89.03, 320.82°)
OKLaboklab(54.74% 0.1729 -0.1584)
OKLCHoklch(54.74% 0.235 317.5)
XYZxyz(26.6523, 13.7800, 55.2777)
Luminance0.1378 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A52AC7 #4CC72A
analogous
#562AC7 #A52AC7 #C72A9B
triadic
#A52AC7 #C7A52A #2AC7A5
tetradic
#A52AC7 #C7562A #4CC72A #2A9BC7
square
#A52AC7 #C7562A #4CC72A #2A9BC7
split-complementary
#A52AC7 #9BC72A #2AC756
monochromatic
#511562 #7B1F94 #A52AC7 #BD53DB #D186E5

Accessibility & contrast

On white

5.59
#A52AC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#A52AC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A52AC7
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A52AC7#FFFFFF#000000##FFFFFF
##A52AC71.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CB
Deuteranopia (green-blind)
#2F6BC4
Tritanopia (blue-blind)
#A34E79
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #a52ac7;
/* rgb */ color: rgb(165, 42, 199);
/* oklch */ color: oklch(54.7% 0.235 317.5);
Tailwind
colors: {
  custom: {
    50: '#c473d9',
    500: '#a52ac7',
    950: '#000000',
  },
}
SCSS
$custom: #a52ac7;
$custom-light: #c473d9;
$custom-dark: #000000;
JSON
{
  "hex": "#a52ac7",
  "rgb": {
    "r": 165,
    "g": 42,
    "b": 199
  },
  "hsl": {
    "h": 287.006,
    "s": 65.145,
    "l": 47.255
  },
  "oklch": {
    "l": 0.54741,
    "c": 0.23452,
    "h": 317.5
  },
  "luminance": 0.13779
}

Semantic roles & 50–950 ramp

primary
#A52AC7
secondary
#8FCF7E
accent
#E84064
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130915
muted
#827B83

Preview Lab

Preview with #A52AC7

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

Preview Lab → · Contrast checker → · Palette generator →

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