A hat is about shade, not warmth. In Bali the daily highs rarely fall below 28C and the relative humidity sits around 80% year-round (WMO), so a baby does not need a hat to stay warm. They need one when the sun is on their face. A wide brim shades the eyes, nose and cheeks, which a close-fitting cap cannot do. Pick a hat that ties or fastens gently under the chin so it stays on without pressing on the neck.
Fabric matters because a hat sits right against a hot head. Muslin is woven in an open, loose weave, and the gaps let air move through, so it is light and breathable. Epic's clothes are double-layer muslin cotton, pre-washed so they arrive soft, with flat seams. The same fabric logic applies to a hat: choose something light and loose, and take it off when your baby moves into shade or indoors. If you are weighing the whole outfit, how many layers a baby should wear in hot weather covers the rest of the body.
Some babies pull a hat off within seconds, and that is normal. Try a different shape, or stay in the shade and put the hat on for the short walks between spots. Sleeves and long trousers also shade skin, and we explain when they help in whether babies need long sleeves in hot climates. If you are planning a trip, how to dress a baby for a tropical holiday puts the pieces together. Muslin creases easily, and that is fine. Wash it cold on a gentle cycle and skip fabric softener.