#A52FA2#A52FA2

#A52FA2 is a mid, vivid purple. Relative luminance 0.126; OKLCH L 52.8% C 0.200 H 329.0°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#A52FA2
RGBrgb(165, 47, 162)
HSLhsl(302, 56%, 42%)
HSVhsv(302, 72%, 65%)
CMYKcmyk(0%, 71.5%, 1.8%, 35.3%)
CIE-LABlab(42.22, 60.88, -37.15)
CIE-LCHlch(42.22, 71.32, 328.61°)
OKLaboklab(52.81% 0.1712 -0.1027)
OKLCHoklch(52.81% 0.2 329)
XYZxyz(23.0549, 12.6427, 35.4014)
Luminance0.1264 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A52FA2 #2FA532
analogous
#6D2FA5 #A52FA2 #A52F67
triadic
#A52FA2 #A2A52F #2FA2A5
tetradic
#A52FA2 #A56D2F #2FA532 #2F67A5
square
#A52FA2 #A56D2F #2FA532 #2F67A5
split-complementary
#A52FA2 #67A52F #2FA56D
monochromatic
#461444 #752173 #A52FA2 #CB47C7 #D876D6

Accessibility & contrast

On white

5.95
#A52FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#A52FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A52FA2
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A52FA2#FFFFFF#000000##FFFFFF
##A52FA21.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E5AA5
Deuteranopia (green-blind)
#50699F
Tritanopia (blue-blind)
#AB3F65
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #a52fa2;
/* rgb */ color: rgb(165, 47, 162);
/* oklch */ color: oklch(52.8% 0.200 329.0);
Tailwind
colors: {
  custom: {
    50: '#c373be',
    500: '#a52fa2',
    950: '#000000',
  },
}
SCSS
$custom: #a52fa2;
$custom-light: #c373be;
$custom-dark: #000000;
JSON
{
  "hex": "#a52fa2",
  "rgb": {
    "r": 165,
    "g": 47,
    "b": 162
  },
  "hsl": {
    "h": 301.525,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.52813,
    "c": 0.19959,
    "h": 329
  },
  "luminance": 0.12641
}

Semantic roles & 50–950 ramp

primary
#A52FA2
secondary
#70C072
accent
#DF4D49
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #A52FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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