#51127F Hex Color
Online color picker to view shades, tints, color codes, and complementary colors

This dark violet is intense and moody, making it an excellent base for high-contrast dark mode interfaces. Because the hex code #51127f is so saturated, it pairs best with crisp white text, which creates a highly readable 12.0:1 contrast ratio. Use this shade sparingly as an accent to ground lighter palettes, as it can feel too heavy when applied to large, dominant backgrounds.
Questions about #51127f
What is #51127f in RGB, HSL and CMYK?
In RGB, #51127f is rgb(81, 18, 127), in HSL hsl(275, 75%, 28%) and in CMYK 36%, 86%, 0%, 50%. Browse more shades of purple with names and hex codes.
How should #51127f be used in UI design?
Use #51127f primarily as a bold accent rather than a dominant background color to prevent it from feeling too heavy. Its high saturation works beautifully alongside crisp white text, providing the strong visual contrast required for modern, readable dark mode interfaces.
Which colors pair best with #51127f?
Is #51127f readable on white or black?
#51127f has a 12.04:1 contrast ratio on white and 1.74: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.