#40226A Hex Color

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

Hex color #40226a graphic
This deep, moody purple offers a grounded alternative to brighter violet tones. Because it is highly saturated and dark, the hex code #40226a works best as a primary background for high-contrast UI designs or as a secondary accent color. It pairs surprisingly well with muted gold or sage green. White text remains legible against this dark base, making it suitable for clean, readable layouts.

Questions about #40226a

What is #40226a in RGB, HSL and CMYK?
In RGB, #40226a is rgb(64, 34, 106), in HSL hsl(265, 51%, 27%) and in CMYK 40%, 68%, 0%, 58%. Browse more shades of purple with names and hex codes.
What colors pair best with #40226a in a design?
This deep purple finds its strongest balance when paired with muted earthy tones or soft metallics. Try combining #40226a with sage green for a natural, grounded feel or using gold accents to bring out the luxurious warmth hidden within its dark undertones.
Is #40226a suitable for text on a website?
While #40226a is an excellent choice for a primary background or a bold container, it is too dark to display standard text comfortably. Use it instead as a foundation to host high-contrast, light-colored typography, which will remain crisp and legible against this moody base.
Is #40226a readable on white or black?
#40226a has a 12.68:1 contrast ratio on white and 1.65: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.