Use contrast checker tools to help you check for contrast.
Try the WebAim Checker Tool, which is very well thought of in terms of website accessibility.