#400042 Hex Color

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

Hex color #400042 graphic
This deep, near-black violet creates a moody atmosphere for dark-themed interfaces. It offers high readability for white text, boasting a 16.2:1 contrast ratio. While you consider how to make purple, keep in mind that this shade works best as a primary background rather than for fine text or detail. The hex code for this color is #400042.

Questions about #400042

What is #400042 in RGB, HSL and CMYK?
In RGB, #400042 is rgb(64, 0, 66), in HSL hsl(298, 100%, 13%) and in CMYK 3%, 100%, 0%, 74%.
Where should I use #400042 in a web design?
#400042 works best as a primary background or a footer element rather than for text or fine details. Because it is so dark, white or light-toned text provides the necessary contrast to maintain readability for users.
What colors pair well with #400042?
This deep violet pairs beautifully with light, neutral tones or bright accent colors to create visual balance. Using it alongside a crisp cream or a soft silver creates a sophisticated, high-contrast look suitable for modern digital interfaces.
Is #400042 readable on white or black?
#400042 has a 16.19:1 contrast ratio on white and 1.29: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.