A background colour with an alpha component preserves the opacity of text and icons. This is particularly useful for labels over photographs.
Worked example
<div class="demo bg-[#14b8a6]/20">Tint only the background</div>Implementation notes
Layering two translucent surfaces compounds their colours. Test the finished component against the real photo or page surface rather than a neutral swatch.
Try it yourself
Compare the label over the brightest and darkest parts of an image.
Open the Tailwind CSS example →Editorial date August 29, 2026 · Published December 6, 2026