With my tang, the paleness lasted for 4 days. After that, his color returned and he brightened up dramatically. Color loss is usually due to stress, although fish do tend to lose color once the lights go off. Make sure the tang has plenty of algae and seaweed to graze on, and make sure it is getting enough vitamin C.
With the scratching on the glass, it could be several things: the tang could just be feeling out the new tanks boundaries, or he could be itching. Look to see if he is rubbing up against other decorations and live rock in the tank. If he is, then that is flashing, a symptom of ich and velvet. Look for pinhead sized white bumps on the tang's fins and body. That is the easiest way to identify Ich. Velvet appears as a "dust" of small whitish or gold colored flecks on the fish's skin. Yellow tangs are also succeptable to black Ich, which is caused by a parasitic turbellarian worm. The symptoms are the same as white spot Ich, but the spots are black, and highly visible against the tang's yellow skin.