#A52FA1#A52FA1
#A52FA1 is a mid, vivid purple. Relative luminance 0.126; OKLCH L 52.8% C 0.199 H 329.4°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).
Color values
| HEX | #A52FA1 |
|---|---|
| RGB | rgb(165, 47, 161) |
| HSL | hsl(302, 56%, 42%) |
| HSV | hsv(302, 72%, 65%) |
| CMYK | cmyk(0%, 71.5%, 2.4%, 35.3%) |
| CIE-LAB | lab(42.17, 60.71, -36.63) |
| CIE-LCH | lch(42.17, 70.91, 328.89°) |
| OKLab | oklab(52.76% 0.1711 -0.1012) |
| OKLCH | oklch(52.76% 0.199 329.4) |
| XYZ | xyz(22.9664, 12.6073, 34.9351) |
| Luminance | 0.1261 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 3.31
Medium Purple
#9E43A2
ΔE00 3.31
Warm Purple
#952E8F
ΔE00 3.88
Barney
#AC1DB8
ΔE00 4.01
Barney Purple
#A00498
ΔE00 4.43
Purply
#983FB2
ΔE00 4.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A52FA1 #2FA533
analogous
#6E2FA5 #A52FA1 #A52F66
triadic
#A52FA1 #A1A52F #2FA1A5
tetradic
#A52FA1 #A56E2F #2FA533 #2F66A5
square
#A52FA1 #A56E2F #2FA533 #2F66A5
split-complementary
#A52FA1 #66A52F #2FA56E
monochromatic
#461444 #752173 #A52FA1 #CB47C6 #D876D5
Accessibility & contrast
On white
5.96
#A52FA1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.52
#A52FA1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A52FA1
5.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A52FA1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A52FA1 | 1.00 | 5.96 | 3.52 | 5.96 |
| #FFFFFF | 5.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2059A4
Deuteranopia (green-blind)
#51699E
Tritanopia (blue-blind)
#AB3F65
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #a52fa1; /* rgb */ color: rgb(165, 47, 161); /* oklch */ color: oklch(52.8% 0.199 329.4);
Tailwind
colors: {
custom: {
50: '#c373bd',
500: '#a52fa1',
950: '#000000',
},
}SCSS
$custom: #a52fa1; $custom-light: #c373bd; $custom-dark: #000000;
JSON
{
"hex": "#a52fa1",
"rgb": {
"r": 165,
"g": 47,
"b": 161
},
"hsl": {
"h": 302.034,
"s": 55.66,
"l": 41.569
},
"oklch": {
"l": 0.52757,
"c": 0.19881,
"h": 329.4
},
"luminance": 0.12606
}Semantic roles & 50–950 ramp
primary
#A52FA1
secondary
#70C072
accent
#DF4E49
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130912
muted
#827B81