If it's a panther chameleon then its normal for it to have a yellow tint to the inside of the mouth.
Does he keep it open when not in the basking area. Try turning off the basking light for a few minutes and see if he shuts it. Does your chameleon wheeze or have excess mucus in its mouth?