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

Dark and saturated, #5f17a0 is a cool purple with blue-violet undertones and a strong, dramatic presence. It suggests mystery, spirituality, and creative depth, making it effective for gaming, luxury, or religious branding. Use it as a dominant dark-mode background with white text, which reaches about a 9.9:1 contrast ratio. The hex code for this purple is #5f17a0.
Questions about #5f17a0
What is #5f17a0 in RGB, HSL and CMYK?
In RGB, #5f17a0 is rgb(95, 23, 160), in HSL hsl(272, 75%, 36%) and in CMYK 41%, 86%, 0%, 37%. Browse more shades of purple with names and hex codes.
Does #5f17a0 work well with white text?
Yes, #5f17a0 provides about a 9.9:1 contrast ratio with white, comfortably clearing WCAG AA and AAA thresholds for normal text and making it suitable for dark backgrounds, headings, and interface surfaces when the surrounding text and controls are also checked.
Which colors pair well with #5f17a0?
#5f17a0 pairs well with white for strong contrast, while charcoal, cool lavender, and muted gold preserve its cool, dramatic character and create balanced supporting palettes. Use lighter neutrals for text and lavender or gold as accents when designing interfaces, logos, or decorative palettes.
Is #5f17a0 readable on white or black?
#5f17a0 has a 9.92: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.