#A52A97#A52A97
#A52A97 is a mid, vivid purple. Relative luminance 0.119; OKLCH L 51.8% C 0.197 H 333.2°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).
Color values
| HEX | #A52A97 |
|---|---|
| RGB | rgb(165, 42, 151) |
| HSL | hsl(307, 59%, 41%) |
| HSV | hsv(307, 75%, 65%) |
| CMYK | cmyk(0%, 74.5%, 8.5%, 35.3%) |
| CIE-LAB | lab(41.04, 60.80, -32.39) |
| CIE-LCH | lch(41.04, 68.89, 331.96°) |
| OKLab | oklab(51.78% 0.1756 -0.0889) |
| OKLCH | oklch(51.78% 0.197 333.2) |
| XYZ | xyz(21.9311, 11.8915, 30.4124) |
| Luminance | 0.1189 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Warm Purple
#952E8F
ΔE00 2.98
Barney Purple
#A00498
ΔE00 3.81
Ugly Purple
#A442A0
ΔE00 4.17
Medium Purple
#9E43A2
ΔE00 4.51
Barney
#AC1DB8
ΔE00 5.59
Purply
#983FB2
ΔE00 6.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A52A97 #2AA538
analogous
#752AA5 #A52A97 #A52A5A
triadic
#A52A97 #97A52A #2A97A5
tetradic
#A52A97 #A5752A #2AA538 #2A5AA5
square
#A52A97 #A5752A #2AA538 #2A5AA5
split-complementary
#A52A97 #5AA52A #2AA575
monochromatic
#43113E #741E6A #A52A97 #CE3EBE #DA6FCE
Accessibility & contrast
On white
6.22
#A52A97 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.38
#A52A97 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A52A97
6.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A52A97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A52A97 | 1.00 | 6.22 | 3.38 | 6.22 |
| #FFFFFF | 6.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#25569A
Deuteranopia (green-blind)
#546794
Tritanopia (blue-blind)
#AD375E
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #a52a97; /* rgb */ color: rgb(165, 42, 151); /* oklch */ color: oklch(51.8% 0.197 333.2);
Tailwind
colors: {
custom: {
50: '#c371b6',
500: '#a52a97',
950: '#000000',
},
}SCSS
$custom: #a52a97; $custom-light: #c371b6; $custom-dark: #000000;
JSON
{
"hex": "#a52a97",
"rgb": {
"r": 165,
"g": 42,
"b": 151
},
"hsl": {
"h": 306.829,
"s": 59.42,
"l": 40.588
},
"oklch": {
"l": 0.51778,
"c": 0.1968,
"h": 333.2
},
"luminance": 0.1189
}Semantic roles & 50–950 ramp
primary
#A52A97
secondary
#69C173
accent
#E35745
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80