#7F42C4 Hex Color

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

Hex color #7f42c4 graphic
This high-intensity violet carries significant visual weight. Because of its saturation, #7f42c4 works best as an accent color rather than a primary background. It pairs exceptionally well with muted cool grays, which allow the purple to pop without becoming overwhelming. With a contrast ratio of 6.0:1 against white text, the hex code #7f42c4 remains legible for UI elements and bold calls to action.

Questions about #7f42c4

What is #7f42c4 in RGB, HSL and CMYK?
In RGB, #7f42c4 is rgb(127, 66, 196), in HSL hsl(268, 52%, 51%) and in CMYK 35%, 66%, 0%, 23%.
How can I use #7f42c4 effectively in a website interface?
Use #7f42c4 as a high-impact accent color for buttons or call-to-action elements rather than a primary background shade. It maintains strong contrast against white text, making it a reliable choice for readable, bold UI interactions.
What colors pair well with the violet of #7f42c4?
Pair #7f42c4 with neutral, muted cool grays to prevent the saturation from becoming visually overwhelming. This combination allows the violet to pop as an accent without losing legibility or clashing with the overall interface palette.
Is #7f42c4 readable on white or black?
#7f42c4 has a 6.03:1 contrast ratio on white and 3.47: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 works only for large text (24px, or 18.5px bold). Try other pairs in the contrast checker.