#A540B1#A540B1
#A540B1 is a mid, vivid purple. Relative luminance 0.148; OKLCH L 55.4% C 0.191 H 323.3°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).
Color values
| HEX | #A540B1 |
|---|---|
| RGB | rgb(165, 64, 177) |
| HSL | hsl(294, 47%, 47%) |
| HSV | hsv(294, 64%, 69%) |
| CMYK | cmyk(6.8%, 63.8%, 0%, 30.6%) |
| CIE-LAB | lab(45.42, 56.85, -40.98) |
| CIE-LCH | lch(45.42, 70.08, 324.21°) |
| OKLab | oklab(55.38% 0.1529 -0.1139) |
| OKLCH | oklch(55.38% 0.191 323.3) |
| XYZ | xyz(25.2855, 14.8418, 43.1194) |
| Luminance | 0.1484 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Medium Purple
#9E43A2
ΔE00 2.73
Purply
#983FB2
ΔE00 2.86
Ugly Purple
#A442A0
ΔE00 3.27
Barney
#AC1DB8
ΔE00 4.31
Darkorchid
#9932CC
ΔE00 6.30
Purpley Pink
#C83CB9
ΔE00 6.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A540B1 #4CB140
analogous
#6C40B1 #A540B1 #B14085
triadic
#A540B1 #B1A540 #40B1A5
tetradic
#A540B1 #B16C40 #4CB140 #4085B1
square
#A540B1 #B16C40 #4CB140 #4085B1
split-complementary
#A540B1 #85B140 #40B16C
monochromatic
#511F57 #7B3084 #A540B1 #BD66C8 #D193D8
Accessibility & contrast
On white
5.29
#A540B1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.97
#A540B1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A540B1
5.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A540B1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A540B1 | 1.00 | 5.29 | 3.97 | 5.29 |
| #FFFFFF | 5.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.97 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2864B4
Deuteranopia (green-blind)
#5170AE
Tritanopia (blue-blind)
#A85173
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #a540b1; /* rgb */ color: rgb(165, 64, 177); /* oklch */ color: oklch(55.4% 0.191 323.3);
Tailwind
colors: {
custom: {
50: '#c37cc9',
500: '#a540b1',
950: '#000000',
},
}SCSS
$custom: #a540b1; $custom-light: #c37cc9; $custom-dark: #000000;
JSON
{
"hex": "#a540b1",
"rgb": {
"r": 165,
"g": 64,
"b": 177
},
"hsl": {
"h": 293.628,
"s": 46.888,
"l": 47.255
},
"oklch": {
"l": 0.55383,
"c": 0.19068,
"h": 323.3
},
"luminance": 0.1484
}Semantic roles & 50–950 ramp
primary
#A540B1
secondary
#8FC389
accent
#D7515F
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A13
muted
#827C82