#540472 Hex Color

Deep violet with a shadowed edge

Hex color #540472 graphic
#540472 is a deep purple that leans violet, dark enough to sit near-black in dim light. Its cool, muted character suits dark mode interfaces, moody branding, and luxury packaging. White text on this hex code reaches about 12.8:1 contrast, well past WCAG AA, so small body copy stays readable. Try it as a dominant base with a muted gold or plum accent, though it can turn muddy beside bright warm hues.

Questions about #540472

What is #540472 in RGB, HSL and CMYK?
In RGB, #540472 is rgb(84, 4, 114), in HSL hsl(284, 93%, 23%) and in CMYK 26%, 96%, 0%, 55%. Browse more shades of purple with names and hex codes.
What colors pair well with #540472?
Muted gold, dusty mauve, and slate blue all flatter #540472 without fighting its darkness. Avoid bright oranges and yellows, which make it read muddy by comparison.
Is #540472 readable on white or black?
#540472 has a 12.82:1 contrast ratio on white and 1.63:1 on black. WCAG asks for 4.5:1 for body text and 3:1 for large text, so on white it works for body text and on black it is too faint for text. Try other pairs in the contrast checker.