#D8C040 Hex Color

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

Hex color #d8c040 graphic
This golden yellow projects a warm, sunny disposition that works best as a punchy accent rather than a full background. The hex code #d8c040 offers high contrast against black text, making it a functional choice for alerts or buttons. Because it carries a heavy saturation, pair it with muted grays or charcoal to keep your palette from looking overwhelming or muddy.

Questions about #d8c040

What is #d8c040 in RGB, HSL and CMYK?
In RGB, #d8c040 is rgb(216, 192, 64), in HSL hsl(51, 66%, 55%) and in CMYK 0%, 11%, 70%, 15%. Browse more shades of yellow with names and hex codes.
What colors work best when paired with #d8c040?
Because #d8c040 is a high-saturation golden yellow, it balances perfectly when anchored by neutral tones like charcoal or deep gray. These darker, muted shades prevent the yellow from overwhelming your layout while maintaining excellent readability for text and interface elements.
Is #d8c040 readable on white or black?
#d8c040 has a 1.82:1 contrast ratio on white and 11.53:1 on black. WCAG asks for 4.5:1 for body text and 3:1 for large text, so on white it is too faint for text and on black it works for body text. Try other pairs in the contrast checker.