#5D178D Hex Color
Online color picker to view shades, tints, color codes, and complementary colors

This saturated, dark violet carries a serious and mysterious weight. Because it is quite dim, #5d178d works best as a moody background or a strong accent rather than a primary fill. It offers excellent contrast for white text, ensuring readability in dark mode designs. Pair it with soft cream or muted gold to avoid a jarring visual clash. The hex code for this deep purple is #5d178d.
Questions about #5d178d
What is #5d178d in RGB, HSL and CMYK?
In RGB, #5d178d is rgb(93, 23, 141), in HSL hsl(276, 72%, 32%) and in CMYK 34%, 84%, 0%, 45%.
Which color combinations work best with #5d178d?
Is #5d178d readable on white or black?
#5d178d has a 10.64:1 contrast ratio on white and 1.97: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.