#5A317D Hex Color

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

Hex color #5a317d graphic
Reach for #5a317d when a design needs a dark purple that feels moody without going black. This dim, muted violet works as a dominant base in dark mode interfaces or luxury branding, and it flatters dusty rose and aged gold better than the usual white. White text on the hex code hits about 9.7:1 contrast, so small body copy stays readable.

Questions about #5a317d

What is #5a317d in RGB, HSL and CMYK?
In RGB, #5a317d is rgb(90, 49, 125), in HSL hsl(272, 44%, 34%) and in CMYK 28%, 61%, 0%, 51%.
What colors pair well with #5a317d?
#5a317d pairs well with dusty rose, soft gold, and desaturated teal, which lift its dimness without fighting its cool violet undertone. Warm gray and cream also soften it for gentler layouts.
Is #5a317d readable on white or black?
#5a317d has a 9.67:1 contrast ratio on white and 2.17: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.