#A531A2#A531A2
#A531A2 is a mid, vivid purple. Relative luminance 0.128; OKLCH L 53.0% C 0.197 H 329.0°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).
Color values
| HEX | #A531A2 |
|---|---|
| RGB | rgb(165, 49, 162) |
| HSL | hsl(302, 54%, 42%) |
| HSV | hsv(302, 70%, 65%) |
| CMYK | cmyk(0%, 70.3%, 1.8%, 35.3%) |
| CIE-LAB | lab(42.47, 60.17, -36.75) |
| CIE-LCH | lch(42.47, 70.50, 328.58°) |
| OKLab | oklab(52.99% 0.1691 -0.1015) |
| OKLCH | oklch(52.99% 0.197 329) |
| XYZ | xyz(23.1367, 12.8063, 35.4287) |
| Luminance | 0.1280 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Medium Purple
#9E43A2
ΔE00 3.03
Ugly Purple
#A442A0
ΔE00 3.04
Barney
#AC1DB8
ΔE00 3.97
Warm Purple
#952E8F
ΔE00 4.09
Purply
#983FB2
ΔE00 4.63
Barney Purple
#A00498
ΔE00 4.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A531A2 #31A534
analogous
#6E31A5 #A531A2 #A53168
triadic
#A531A2 #A2A531 #31A2A5
tetradic
#A531A2 #A56E31 #31A534 #3168A5
square
#A531A2 #A56E31 #31A534 #3168A5
split-complementary
#A531A2 #68A531 #31A56E
monochromatic
#471545 #762374 #A531A2 #C94AC6 #D779D5
Accessibility & contrast
On white
5.90
#A531A2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.56
#A531A2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A531A2
5.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A531A2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A531A2 | 1.00 | 5.90 | 3.56 | 5.90 |
| #FFFFFF | 5.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#225AA5
Deuteranopia (green-blind)
#516A9F
Tritanopia (blue-blind)
#AB4166
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #a531a2; /* rgb */ color: rgb(165, 49, 162); /* oklch */ color: oklch(53.0% 0.197 329.0);
Tailwind
colors: {
custom: {
50: '#c374be',
500: '#a531a2',
950: '#000000',
},
}SCSS
$custom: #a531a2; $custom-light: #c374be; $custom-dark: #000000;
JSON
{
"hex": "#a531a2",
"rgb": {
"r": 165,
"g": 49,
"b": 162
},
"hsl": {
"h": 301.552,
"s": 54.206,
"l": 41.961
},
"oklch": {
"l": 0.52993,
"c": 0.19728,
"h": 329
},
"luminance": 0.12805
}Semantic roles & 50–950 ramp
primary
#A531A2
secondary
#72C074
accent
#DE4E4A
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81