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

This muted indigo carries a cool, shadowy weight that anchors serious designs. Because it sits at a moderate saturation, #5a51b1 functions well as a moody background for UI or branding. It provides enough contrast to support small white body text, meeting WCAG AA standards easily. Pair it with soft, warm accents like pale peach to keep the look from feeling too dim or clinical.
Questions about #5a51b1
What is #5a51b1 in RGB, HSL and CMYK?
In RGB, #5a51b1 is rgb(90, 81, 177), in HSL hsl(246, 38%, 51%) and in CMYK 49%, 54%, 0%, 31%. Browse more shades of purple with names and hex codes.
What colors pair best with #5a51b1?
Pair #5a51b1 with soft, warm accents like pale peach or creamy off-whites to prevent the design from feeling too dark or clinical. These warmer tones provide a necessary visual balance to the inherent coolness of this deep indigo.
Is #5a51b1 readable on white or black?
#5a51b1 has a 6.46:1 contrast ratio on white and 3.24: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 works only for large text (24px, or 18.5px bold). Try other pairs in the contrast checker.