From the course: Android App Development: Accessibility

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Text and color contrast

Text and color contrast - Android Tutorial

From the course: Android App Development: Accessibility

Start my 1-month free trial

Text and color contrast

- To make your content perceivable, you must meet the minimum color contrast requirements. Color contrast is the relative color luminance between text and background. The result is a ratio between the two. For normal text, the ratio must be at least 4.5 to one. For large or bold text, the ratio must be at least three to one. Color contrast is one of the most common accessibility problems. A frequent case is for hint or placeholder labels inside of text inputs. Another common case is when developers do not consider the color of error messages on dark background. You can use a few tools that can help you find the right color contrast. WebAIM is a website that has a calculator which allows you to input the color of the foreground and the background, and then check the ratio between the two. WebAIM also shows if your color contrast pass the accessibility requirements. You can also use the accessibility scanner and the accessibility testing framework, which is the easiest way to check for…

Contents