This probably has less to do with coding than you would think. It's most likely due to a problem with the UV and Texture file for that particular chest armor.
Which would make it... the coding of that particular file. If the game is displaying the female version on men, that's a coding issue. The color problems could be related or separate.