#A540B2#A540B2
#A540B2 is a mid, vivid purple. Relative luminance 0.149; OKLCH L 55.4% C 0.192 H 323.0°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).
Color values
| HEX | #A540B2 |
|---|---|
| RGB | rgb(165, 64, 178) |
| HSL | hsl(293, 47%, 47%) |
| HSV | hsv(293, 64%, 70%) |
| CMYK | cmyk(7.3%, 64%, 0%, 30.2%) |
| CIE-LAB | lab(45.47, 57.03, -41.48) |
| CIE-LCH | lch(45.47, 70.52, 323.97°) |
| OKLab | oklab(55.44% 0.1529 -0.1154) |
| OKLCH | oklch(55.44% 0.192 323) |
| XYZ | xyz(25.3855, 14.8819, 43.6462) |
| Luminance | 0.1488 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 2.79
Medium Purple
#9E43A2
ΔE00 2.89
Ugly Purple
#A442A0
ΔE00 3.45
Barney
#AC1DB8
ΔE00 4.28
Darkorchid
#9932CC
ΔE00 6.16
Purpley Pink
#C83CB9
ΔE00 6.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A540B2 #4DB240
analogous
#6C40B2 #A540B2 #B24086
triadic
#A540B2 #B2A540 #40B2A5
tetradic
#A540B2 #B26C40 #4DB240 #4086B2
square
#A540B2 #B26C40 #4DB240 #4086B2
split-complementary
#A540B2 #86B240 #40B26C
monochromatic
#522058 #7B3085 #A540B2 #BD67C8 #D194D8
Accessibility & contrast
On white
5.28
#A540B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.98
#A540B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A540B2
5.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A540B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A540B2 | 1.00 | 5.28 | 3.98 | 5.28 |
| #FFFFFF | 5.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2764B5
Deuteranopia (green-blind)
#5070AF
Tritanopia (blue-blind)
#A75273
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #a540b2; /* rgb */ color: rgb(165, 64, 178); /* oklch */ color: oklch(55.4% 0.192 323.0);
Tailwind
colors: {
custom: {
50: '#c37cc9',
500: '#a540b2',
950: '#000000',
},
}SCSS
$custom: #a540b2; $custom-light: #c37cc9; $custom-dark: #000000;
JSON
{
"hex": "#a540b2",
"rgb": {
"r": 165,
"g": 64,
"b": 178
},
"hsl": {
"h": 293.158,
"s": 47.107,
"l": 47.451
},
"oklch": {
"l": 0.55441,
"c": 0.19157,
"h": 323
},
"luminance": 0.1488
}Semantic roles & 50–950 ramp
primary
#A540B2
secondary
#90C48A
accent
#D75160
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A13
muted
#827C82