check if the contrast is valid + UI review