#A540B5#A540B5
#A540B5 is a mid, vivid purple. Relative luminance 0.150; OKLCH L 55.6% C 0.194 H 321.9°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).
Color values
| HEX | #A540B5 |
|---|---|
| RGB | rgb(165, 64, 181) |
| HSL | hsl(292, 48%, 48%) |
| HSV | hsv(292, 65%, 71%) |
| CMYK | cmyk(8.8%, 64.6%, 0%, 29%) |
| CIE-LAB | lab(45.64, 57.59, -42.98) |
| CIE-LCH | lch(45.64, 71.86, 323.27°) |
| OKLab | oklab(55.62% 0.153 -0.1197) |
| OKLCH | oklch(55.62% 0.194 321.9) |
| XYZ | xyz(25.6900, 15.0037, 45.2499) |
| Luminance | 0.1500 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 2.66
Medium Purple
#9E43A2
ΔE00 3.39
Ugly Purple
#A442A0
ΔE00 3.98
Barney
#AC1DB8
ΔE00 4.22
Darkorchid
#9932CC
ΔE00 5.73
Purpley Pink
#C83CB9
ΔE00 6.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A540B5 #50B540
analogous
#6A40B5 #A540B5 #B5408A
triadic
#A540B5 #B5A540 #40B5A5
tetradic
#A540B5 #B56A40 #50B540 #408AB5
square
#A540B5 #B56A40 #50B540 #408AB5
split-complementary
#A540B5 #8AB540 #40B56A
monochromatic
#53205B #7C3088 #A540B5 #BC68CA #D096DA
Accessibility & contrast
On white
5.25
#A540B5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.00
#A540B5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A540B5
5.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A540B5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A540B5 | 1.00 | 5.25 | 4.00 | 5.25 |
| #FFFFFF | 5.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.00 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2365B8
Deuteranopia (green-blind)
#4E70B2
Tritanopia (blue-blind)
#A75375
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #a540b5; /* rgb */ color: rgb(165, 64, 181); /* oklch */ color: oklch(55.6% 0.194 321.9);
Tailwind
colors: {
custom: {
50: '#c37ccc',
500: '#a540b5',
950: '#000000',
},
}SCSS
$custom: #a540b5; $custom-light: #c37ccc; $custom-dark: #000000;
JSON
{
"hex": "#a540b5",
"rgb": {
"r": 165,
"g": 64,
"b": 181
},
"hsl": {
"h": 291.795,
"s": 47.755,
"l": 48.039
},
"oklch": {
"l": 0.55616,
"c": 0.19427,
"h": 321.9
},
"luminance": 0.15002
}Semantic roles & 50–950 ramp
primary
#A540B5
secondary
#93C58B
accent
#D75063
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A13
muted
#827C82