While it's possible to dye some hats, it's a complex process that could result in uneven coloring or damage to the material. It's usually best left to professionals.