WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Color Contrast - where to measure?

for

From: Mobley, Mary Lou
Date: Aug 16, 2023 8:09AM


It depends on the context. If there is a photo or graphic underlying the text, then the eye dropper tool is more accurate than the hex codes or RBG, as those will not accurately calculate the foreground-to-background contrast as they cannot discern the background color in these contexts (this is why automated color contrast checkers are often wrong). But if there is a white background or a colored background available in the code, then the coded RGB / hex codes provide a more accurate way of measuring contrast.