Color contrast is measured using a ratio that compares the luminance of the text color against the background color. The Web Content Accessibility Guidelines (WCAG) recommend a minimum contrast ratio of 4.5:1 for normal text and 3:1 for large text. Various free tools are available online to help you measure color contrast, such as the Color Contrast Checker from WebAIM.