#512A78 Hex Color

Online color picker to view shades, tints, color codes, and complementary colors

Hex color #512a78 graphic
This deep, muted violet carries a moody seriousness that anchors dark UI designs. Because it is so dark, #512a78 works best as a full-page background or a bold structural element rather than text. It pairs well with crisp, high-contrast whites or metallic gold accents for a sophisticated, luxury aesthetic. Use this hex code when you need a shade that feels mysterious and grounded.

Questions about #512a78

What is #512a78 in RGB, HSL and CMYK?
In RGB, #512a78 is rgb(81, 42, 120), in HSL hsl(270, 48%, 32%) and in CMYK 33%, 65%, 0%, 53%.
What colors pair best with #512a78 for UI design?
Pair #512a78 with crisp, high-contrast whites or metallic gold accents to achieve a refined, luxury aesthetic. Because it is a dark, muted shade, avoid using it as text color on backgrounds of similar depth to maintain readability.
Is #512a78 readable on white or black?
#512a78 has a 10.75:1 contrast ratio on white and 1.95: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.