#A540B6#A540B6
#A540B6 is a mid, vivid purple. Relative luminance 0.150; OKLCH L 55.7% C 0.195 H 321.6°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).
Color values
| HEX | #A540B6 |
|---|---|
| RGB | rgb(165, 64, 182) |
| HSL | hsl(291, 48%, 48%) |
| HSV | hsv(291, 65%, 71%) |
| CMYK | cmyk(9.3%, 64.8%, 0%, 28.6%) |
| CIE-LAB | lab(45.70, 57.78, -43.47) |
| CIE-LCH | lch(45.70, 72.31, 323.04°) |
| OKLab | oklab(55.68% 0.153 -0.1212) |
| OKLCH | oklch(55.68% 0.195 321.6) |
| XYZ | xyz(25.7930, 15.0449, 45.7922) |
| Luminance | 0.1504 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 2.64
Medium Purple
#9E43A2
ΔE00 3.55
Ugly Purple
#A442A0
ΔE00 4.16
Barney
#AC1DB8
ΔE00 4.22
Darkorchid
#9932CC
ΔE00 5.60
Purpley Pink
#C83CB9
ΔE00 6.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A540B6 #51B640
analogous
#6A40B6 #A540B6 #B6408C
triadic
#A540B6 #B6A540 #40B6A5
tetradic
#A540B6 #B66A40 #51B640 #408CB6
square
#A540B6 #B66A40 #51B640 #408CB6
split-complementary
#A540B6 #8CB640 #40B66A
monochromatic
#53205B #7C3089 #A540B6 #BC69CA #D096DA
Accessibility & contrast
On white
5.24
#A540B6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.01
#A540B6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A540B6
5.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A540B6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A540B6 | 1.00 | 5.24 | 4.01 | 5.24 |
| #FFFFFF | 5.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.01 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2165BA
Deuteranopia (green-blind)
#4E70B3
Tritanopia (blue-blind)
#A75375
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #a540b6; /* rgb */ color: rgb(165, 64, 182); /* oklch */ color: oklch(55.7% 0.195 321.6);
Tailwind
colors: {
custom: {
50: '#c37ccc',
500: '#a540b6',
950: '#000000',
},
}SCSS
$custom: #a540b6; $custom-light: #c37ccc; $custom-dark: #000000;
JSON
{
"hex": "#a540b6",
"rgb": {
"r": 165,
"g": 64,
"b": 182
},
"hsl": {
"h": 291.356,
"s": 47.967,
"l": 48.235
},
"oklch": {
"l": 0.55675,
"c": 0.19517,
"h": 321.6
},
"luminance": 0.15044
}Semantic roles & 50–950 ramp
primary
#A540B6
secondary
#94C68C
accent
#D85064
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A13
muted
#827C82