#A540BA#A540BA
#A540BA is a mid, vivid purple. Relative luminance 0.152; OKLCH L 55.9% C 0.199 H 320.3°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).
Color values
| HEX | #A540BA |
|---|---|
| RGB | rgb(165, 64, 186) |
| HSL | hsl(290, 49%, 49%) |
| HSV | hsv(290, 66%, 73%) |
| CMYK | cmyk(11.3%, 65.6%, 0%, 27.1%) |
| CIE-LAB | lab(45.92, 58.54, -45.45) |
| CIE-LCH | lch(45.92, 74.11, 322.18°) |
| OKLab | oklab(55.91% 0.153 -0.1269) |
| OKLCH | oklch(55.91% 0.199 320.3) |
| XYZ | xyz(26.2123, 15.2126, 48.0005) |
| Luminance | 0.1521 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 2.69
Medium Purple
#9E43A2
ΔE00 4.22
Barney
#AC1DB8
ΔE00 4.28
Ugly Purple
#A442A0
ΔE00 4.85
Darkorchid
#9932CC
ΔE00 5.09
Vibrant Purple
#AD03DE
ΔE00 6.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A540BA #55BA40
analogous
#6840BA #A540BA #BA4092
triadic
#A540BA #BAA540 #40BAA5
tetradic
#A540BA #BA6840 #55BA40 #4092BA
square
#A540BA #BA6840 #55BA40 #4092BA
split-complementary
#A540BA #92BA40 #40BA68
monochromatic
#54215F #7D308C #A540BA #BB6BCC #D099DC
Accessibility & contrast
On white
5.20
#A540BA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.04
#A540BA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A540BA
5.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A540BA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A540BA | 1.00 | 5.20 | 4.04 | 5.20 |
| #FFFFFF | 5.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.04 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1B66BE
Deuteranopia (green-blind)
#4B70B7
Tritanopia (blue-blind)
#A65578
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #a540ba; /* rgb */ color: rgb(165, 64, 186); /* oklch */ color: oklch(55.9% 0.199 320.3);
Tailwind
colors: {
custom: {
50: '#c37ccf',
500: '#a540ba',
950: '#000000',
},
}SCSS
$custom: #a540ba; $custom-light: #c37ccf; $custom-dark: #000000;
JSON
{
"hex": "#a540ba",
"rgb": {
"r": 165,
"g": 64,
"b": 186
},
"hsl": {
"h": 289.672,
"s": 48.8,
"l": 49.02
},
"oklch": {
"l": 0.55913,
"c": 0.19879,
"h": 320.3
},
"luminance": 0.15211
}Semantic roles & 50–950 ramp
primary
#A540BA
secondary
#98C88E
accent
#D84F67
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A14
muted
#827C82