What is the right pH level in swimming pool explain why?

The main reason to ensure good ph (dull red in ph chemical test kit) is that as per the chemical tests, when at the correct levels the ph in the pool will leave a red trace cloud should any of your visitors be distasteful enough to wee in your pool