#F5E181 Hex Color

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

Hex color #f5e181 graphic
#f5e181 is a bright, pastel yellow with high luminosity. It functions best as an accent color rather than a primary background because it can feel overpowering in large areas. Pair it with deep charcoal or navy blue to ground its inherent energy. Since black text provides a high contrast ratio on this surface, it works reliably for accessible UI design. The hex code for this cheerful shade is #f5e181.

Questions about #f5e181

What is #f5e181 in RGB, HSL and CMYK?
In RGB, #f5e181 is rgb(245, 225, 129), in HSL hsl(50, 85%, 73%) and in CMYK 0%, 8%, 47%, 4%. Browse more shades of yellow with names and hex codes.
How should I use #f5e181 in a design layout?
Use #f5e181 sparingly as an energetic accent rather than a primary background to avoid overwhelming the viewer. It creates excellent readability when paired with high-contrast text, such as deep charcoal or dark navy, for UI elements.
Is #f5e181 readable on white or black?
#f5e181 has a 1.31:1 contrast ratio on white and 15.96: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.