#FFFF42 Hex Color

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

Hex color #ffff42 graphic
This high-saturation yellow demands immediate attention. Due to its intense brightness, #ffff42 works best as a small accent or call-to-action button rather than a full background. It maintains a sharp 19.6:1 contrast ratio against black text, ensuring excellent readability for UI elements. Designers frequently use this shade to highlight sale or budget markers. The hex code for this luminous tone is #ffff42.

Questions about #ffff42

What is #ffff42 in RGB, HSL and CMYK?
In RGB, #ffff42 is rgb(255, 255, 66), in HSL hsl(60, 100%, 63%) and in CMYK 0%, 0%, 74%, 0%. Browse more shades of yellow with names and hex codes.
How should I effectively use #ffff42 in a user interface?
#ffff42 is best reserved for small interactive elements like call-to-action buttons, notification badges, or sale highlights rather than large backgrounds. Because of its extreme brightness, using it sparingly helps maintain visual comfort while directing the user's eye exactly where needed.
Is #ffff42 readable on white or black?
#ffff42 has a 1.06:1 contrast ratio on white and 19.63: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.