Contrast ratio is a numerical value that represents the difference between the luminance of the foreground text and the background. Tools like the WebAIM Contrast Checker can help you measure the contrast ratio. The WCAG 2.1 guidelines recommend a minimum contrast ratio of 4.5:1 for normal text and 3:1 for large text.