#F2D930 Hex Color
Online color picker to view shades, tints, color codes, and complementary colors

Margarine is a high-energy yellow with intense saturation. This bright, warm hue commands attention, making it ideal for call-to-action buttons or small accents rather than full backgrounds. The hex code is #f2d930. Pair it with charcoal or deep navy text to ensure readability, as black text maintains a strong 14.7:1 contrast ratio against this vivid backdrop.
Questions about Margarine
What is the hex code for Margarine?
Margarine is #f2d930. In RGB that is rgb(242, 217, 48), in HSL hsl(52, 88%, 57%) and in CMYK 0%, 10%, 80%, 5%. Browse more shades of yellow with names and hex codes.
What colors pair best with #f2d930?
Margarine works best when paired with high-contrast, dark neutrals like charcoal or deep navy to ensure text readability. Because the yellow is so vivid, using it alongside these darker tones prevents visual clutter while maintaining its energetic appeal.
Is Margarine readable on white or black?
Margarine has a 1.42:1 contrast ratio on white and 14.74: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.