How to fill particular areas in texture paint?
You can use the UV Image Editor Fill tool and play with the threshhold settings to see how well the fill works without spilling into the area around the colored area.