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

This dim, muted violet carries a heavy, serious presence that avoids being overly aggressive. Because it is quite dark, #5a3171 serves best as a moody background or a grounding footer color rather than for small text. It pairs well with crisp, cool whites to create high-contrast UI layouts, but it can look muddy next to warm or earthy tones. The hex code for this purple is #5a3171.
Questions about #5a3171
What is #5a3171 in RGB, HSL and CMYK?
In RGB, #5a3171 is rgb(90, 49, 113), in HSL hsl(278, 40%, 32%) and in CMYK 20%, 57%, 0%, 56%. Browse more shades of purple with names and hex codes.
How can I best use #5a3171 in a web interface?
#5a3171 functions as a strong, grounding background color for footers or sidebars. To maintain readability, pair it with bright, cool whites or off-whites for high-contrast text, as the dark saturation can make small, thin typography difficult to discern.
Is #5a3171 considered a warm or cool purple?
#5a3171 leans toward the cool side of the spectrum, though its muted, desaturated nature keeps it from feeling overly vibrant or neon. It generally clashes with warm, earthy tones like terracotta or warm browns, looking cleanest alongside crisp, neutral grays.
Is #5a3171 readable on white or black?
#5a3171 has a 9.94:1 contrast ratio on white and 2.11: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.