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

#5b1d87 is a saturated, moody violet with dark, cool undertones. Because it sits on the edge of black, it excels as a dominant background for high-contrast, mystical, or luxury branding. White text is highly readable against this shade, making it a reliable choice for dark mode UI. The hex code for this intense purple is #5b1d87.
Questions about #5b1d87
What is #5b1d87 in RGB, HSL and CMYK?
In RGB, #5b1d87 is rgb(91, 29, 135), in HSL hsl(275, 65%, 32%) and in CMYK 33%, 79%, 0%, 47%.
How does #5b1d87 function in UI design?
#5b1d87 acts as an ideal base for dark mode interfaces because its deep, near-black violet allows white text to pop with superior readability. Designers often use this shade to ground energetic palettes that need a stable, luxurious anchor point.
Which color combinations work well with #5b1d87?
Is #5b1d87 readable on white or black?
#5b1d87 has a 10.65: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.