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

This dim, saturated violet carries a heavy and serious presence. Because #5c178c is quite dark, it functions best as a dominant base for moody UI or dark mode interfaces. It pairs effectively with white text, providing high contrast for readability. Avoid using this shade for fine details, as it can easily lose clarity at small sizes. The hex code for this deep purple is #5c178c.
Questions about #5c178c
What is #5c178c in RGB, HSL and CMYK?
In RGB, #5c178c is rgb(92, 23, 140), in HSL hsl(275, 72%, 32%) and in CMYK 34%, 84%, 0%, 45%. Browse more shades of purple with names and hex codes.
What works best for text over #5c178c?
Use pure white or very light off-white text to maintain legibility against this deep, saturated violet. Because the color is so dark, darker shades or even mid-tones will disappear into the background, making high-contrast light text essential for usability.
Is #5c178c suitable for small UI elements like text or icons?
It is generally better to avoid using #5c178c for fine details or small text. At small sizes, the saturation can cause visual vibration and loss of clarity, making it much more effective as a large-scale background or primary color block.
Is #5c178c readable on white or black?
#5c178c has a 10.73:1 contrast ratio on white and 1.95: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.