Vaginal discharge

When is it really safe for me to have sex if i continue on having discharge that is slightly brownish red??