Web and document accessibility for SERC
Colors and contrast
Why is contrast important?
For sighted users with visual impairments, such as color blindness, low vision, or even situational challenges such as small screens or bright ambient light, it can be difficult to read text or see graphics when difference in colors between foreground and background is perceived to be low. Text that may be clearly legible to one user might be hard to distinguish for another. The best way to ensure that the most sighted users can read your content is to keep a high level of contrast between background colors and text colors (or foreground graphic colors). This makes text legible for sighted users with vision impairments, and improves the impact and legibility of your webpages and graphics for all sighted users.
How do we make sure contrast is high enough?
While a Serckit feature may warn you of low contrast while making a chrome, it is important to be able to check existing text or other content for sufficient contrast, as well as graphics that you may include in a document or upload to a website.
- If you are using Firefox or Chrome, you can download Colorzilla to extract hex codes of the colors of the text or background on the page (choose "Pick color from page"; clicking will automatically copy the hex code of your selection to the clipboard); or in Chrome, select and right click on text, choose "Inspect" to open Developer Tools, and under "Styles" you will find hex codes for the selection.
- Copy and paste the foreground and background colors into the WebAIM color contrast checking tool to measure their contrast.