How to wire a Hampton Bay ceiling fan with purple, black, brown and gray wires

To wire a Hampton Bay ceiling fan switch with a purple, black, brown, and gray…