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

A dark, muted violet with a cool, inky cast, #5a1f8d sits deep enough to hold white text at about 10.4:1 contrast, well past the AA threshold for body copy. That low brightness makes it a strong dominant base for dark mode UIs and moody brand palettes, where it reads as serious and mysterious rather than playful. Pair it with dusty gold or warm amber to keep it from feeling flat.
Questions about #5a1f8d
What is #5a1f8d in RGB, HSL and CMYK?
In RGB, #5a1f8d is rgb(90, 31, 141), in HSL hsl(272, 64%, 34%) and in CMYK 36%, 78%, 0%, 45%. Browse more shades of purple with names and hex codes.
What colors pair well with #5a1f8d?
Warm accents like dusty gold, amber, or muted rose lift this dark violet and stop it from reading flat. Cool grays and near-black shades also work for restrained, moody palettes. Avoid bright oranges, which fight its dim, cool character.
Is #5a1f8d readable on white or black?
#5a1f8d has a 10.42:1 contrast ratio on white and 2.01: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.