#540DC2 Hex Color

Online color picker to view shades, tints, color codes, and complementary colors

Hex color #540dc2 graphic
Not a soft lavender, #540dc2 is a dark, saturated purple with a cool violet edge. Its gloomy, mysterious character suits luxury branding, gaming interfaces, and moody backgrounds. The hex code works best as a dominant base or bold accent, and white text passes contrast easily at about 9.5:1. Pair it with dusty teal or muted gold to keep it from reading flat.

Questions about #540dc2

What is #540dc2 in RGB, HSL and CMYK?
In RGB, #540dc2 is rgb(84, 13, 194), in HSL hsl(264, 87%, 41%) and in CMYK 57%, 93%, 0%, 24%.
What colors pair well with #540dc2?
Dusty teal and muted gold flatter #540dc2 without competing with its saturation. On dark interfaces, warm grays also soften its intensity for supporting text.
Is #540dc2 readable on white or black?
#540dc2 has a 9.48:1 contrast ratio on white and 2.21: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.