#A540AA#A540AA
#A540AA is a mid, vivid purple. Relative luminance 0.146; OKLCH L 55.0% C 0.184 H 325.8°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).
Color values
| HEX | #A540AA |
|---|---|
| RGB | rgb(165, 64, 170) |
| HSL | hsl(297, 45%, 46%) |
| HSV | hsv(297, 62%, 67%) |
| CMYK | cmyk(2.9%, 62.4%, 0%, 33.3%) |
| CIE-LAB | lab(45.04, 55.56, -37.45) |
| CIE-LCH | lch(45.04, 67.01, 326.02°) |
| OKLab | oklab(54.99% 0.1526 -0.1037) |
| OKLCH | oklch(54.99% 0.184 325.8) |
| XYZ | xyz(24.6056, 14.5699, 39.5387) |
| Luminance | 0.1457 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Medium Purple
#9E43A2
ΔE00 1.70
Ugly Purple
#A442A0
ΔE00 1.98
Purply
#983FB2
ΔE00 3.59
Barney
#AC1DB8
ΔE00 4.77
Warm Purple
#952E8F
ΔE00 6.34
Purpley Pink
#C83CB9
ΔE00 6.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A540AA #45AA40
analogous
#7040AA #A540AA #AA407A
triadic
#A540AA #AAA540 #40AAA5
tetradic
#A540AA #AA7040 #45AA40 #407AAA
square
#A540AA #AA7040 #45AA40 #407AAA
split-complementary
#A540AA #7AAA40 #40AA70
monochromatic
#4F1F51 #7A2F7E #A540AA #C063C4 #D28FD5
Accessibility & contrast
On white
5.37
#A540AA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.91
#A540AA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A540AA
5.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A540AA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A540AA | 1.00 | 5.37 | 3.91 | 5.37 |
| #FFFFFF | 5.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2F62AD
Deuteranopia (green-blind)
#556FA7
Tritanopia (blue-blind)
#A94F6F
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #a540aa; /* rgb */ color: rgb(165, 64, 170); /* oklch */ color: oklch(55.0% 0.184 325.8);
Tailwind
colors: {
custom: {
50: '#c37cc4',
500: '#a540aa',
950: '#000000',
},
}SCSS
$custom: #a540aa; $custom-light: #c37cc4; $custom-dark: #000000;
JSON
{
"hex": "#a540aa",
"rgb": {
"r": 165,
"g": 64,
"b": 170
},
"hsl": {
"h": 297.17,
"s": 45.299,
"l": 45.882
},
"oklch": {
"l": 0.54987,
"c": 0.18448,
"h": 325.8
},
"luminance": 0.14568
}Semantic roles & 50–950 ramp
primary
#A540AA
secondary
#88C086
accent
#D55359
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A12
muted
#827C81