#A52AB2#A52AB2

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

Color values

HEX#A52AB2
RGBrgb(165, 42, 178)
HSLhsl(294, 62%, 43%)
HSVhsv(294, 76%, 70%)
CMYKcmyk(7.3%, 76.4%, 0%, 30.2%)
CIE-LABlab(42.57, 65.24, -46.11)
CIE-LCHlch(42.57, 79.89, 324.75°)
OKLaboklab(53.36% 0.1754 -0.1287)
OKLCHoklch(53.36% 0.218 323.7)
XYZxyz(24.3802, 12.8711, 43.3111)
Luminance0.1287 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A52AB2 #37B22A
analogous
#612AB2 #A52AB2 #B22A7B
triadic
#A52AB2 #B2A52A #2AB2A5
tetradic
#A52AB2 #B2612A #37B22A #2A7BB2
square
#A52AB2 #B2612A #37B22A #2A7BB2
split-complementary
#A52AB2 #7BB22A #2AB261
monochromatic
#49134F #771E80 #A52AB2 #C646D3 #D577DF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A52AB2#FFFFFF#000000##FFFFFF
##A52AB21.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)
#005BB6
Deuteranopia (green-blind)
#4369AF
Tritanopia (blue-blind)
#A8446D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #a52ab2;
/* rgb */ color: rgb(165, 42, 178);
/* oklch */ color: oklch(53.4% 0.218 323.7);
Tailwind
colors: {
  custom: {
    50: '#c472ca',
    500: '#a52ab2',
    950: '#000000',
  },
}
SCSS
$custom: #a52ab2;
$custom-light: #c472ca;
$custom-dark: #000000;
JSON
{
  "hex": "#a52ab2",
  "rgb": {
    "r": 165,
    "g": 42,
    "b": 178
  },
  "hsl": {
    "h": 294.265,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.5336,
    "c": 0.21753,
    "h": 323.7
  },
  "luminance": 0.1287
}

Semantic roles & 50–950 ramp

primary
#A52AB2
secondary
#79C771
accent
#E54352
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #A52AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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