The German Association for the Blind and Visually Impaired offers an online tool for calculating contrast with comprehensive explanations. Besides RGB and CMYK, the 360 colour systems of the Open Color Systems Collection can also be selected.
In order to enable visually impaired and colour-impaired people to access websites, it is important to have sufficient brightness contrast in addition to font sizes. legible.info both can be checked.