#A540B4#A540B4
#A540B4 is a mid, vivid purple. Relative luminance 0.150; OKLCH L 55.6% C 0.193 H 322.3°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).
Color values
| HEX | #A540B4 |
|---|---|
| RGB | rgb(165, 64, 180) |
| HSL | hsl(292, 48%, 48%) |
| HSV | hsv(292, 64%, 71%) |
| CMYK | cmyk(8.3%, 64.4%, 0%, 29.4%) |
| CIE-LAB | lab(45.58, 57.41, -42.48) |
| CIE-LCH | lch(45.58, 71.41, 323.50°) |
| OKLab | oklab(55.56% 0.153 -0.1183) |
| OKLCH | oklch(55.56% 0.193 322.3) |
| XYZ | xyz(25.5878, 14.9628, 44.7115) |
| Luminance | 0.1496 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 2.69
Medium Purple
#9E43A2
ΔE00 3.22
Ugly Purple
#A442A0
ΔE00 3.81
Barney
#AC1DB8
ΔE00 4.23
Darkorchid
#9932CC
ΔE00 5.87
Purpley Pink
#C83CB9
ΔE00 6.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A540B4 #4FB440
analogous
#6B40B4 #A540B4 #B44089
triadic
#A540B4 #B4A540 #40B4A5
tetradic
#A540B4 #B46B40 #4FB440 #4089B4
square
#A540B4 #B46B40 #4FB440 #4089B4
split-complementary
#A540B4 #89B440 #40B46B
monochromatic
#52205A #7C3087 #A540B4 #BD68C9 #D195D9
Accessibility & contrast
On white
5.26
#A540B4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.99
#A540B4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A540B4
5.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A540B4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A540B4 | 1.00 | 5.26 | 3.99 | 5.26 |
| #FFFFFF | 5.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.99 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2464B7
Deuteranopia (green-blind)
#4F70B1
Tritanopia (blue-blind)
#A75374
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #a540b4; /* rgb */ color: rgb(165, 64, 180); /* oklch */ color: oklch(55.6% 0.193 322.3);
Tailwind
colors: {
custom: {
50: '#c37ccb',
500: '#a540b4',
950: '#000000',
},
}SCSS
$custom: #a540b4; $custom-light: #c37ccb; $custom-dark: #000000;
JSON
{
"hex": "#a540b4",
"rgb": {
"r": 165,
"g": 64,
"b": 180
},
"hsl": {
"h": 292.241,
"s": 47.541,
"l": 47.843
},
"oklch": {
"l": 0.55557,
"c": 0.19337,
"h": 322.3
},
"luminance": 0.14961
}Semantic roles & 50–950 ramp
primary
#A540B4
secondary
#92C58B
accent
#D75162
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A13
muted
#827C82