#ABAB52 Hex Color

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

Hex color #abab52 graphic
#abab52 is a mellow, grayed yellow that leans toward olive. Its muted saturation keeps things soft, so it works well as a background for spring themes or budget-friendly branding. Pair it with charcoal or plum for contrast, and use black text on top for readability. The hex code #abab52 also passes AA standards behind small body copy.

Questions about #abab52

What is #abab52 in RGB, HSL and CMYK?
In RGB, #abab52 is rgb(171, 171, 82), in HSL hsl(60, 35%, 50%) and in CMYK 0%, 0%, 52%, 33%. Browse more shades of yellow with names and hex codes.
What colors pair well with #abab52?
Charcoal, deep plum, and terracotta all flatter #abab52 because their depth offsets its grayed softness. For a fresher mix, try sage or a creamy off-white instead of pure white, which can wash the yellow out.
Is #abab52 a good background color for text?
Yes. Black text on #abab52 reaches about 8.7:1 contrast, well above the 4.5:1 needed for WCAG AA body text. White text, however, falls short, so stick with dark type on this yellow.
Is #abab52 readable on white or black?
#abab52 has a 2.41:1 contrast ratio on white and 8.67: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.