When color customization is supported, provide a variety of color selections capable of producing a range of contrast levels.
Rationale
For many people, color is a matter of preference, but it is critical for many users with visual impairments. Users with visual impairments require a high contrast between text and the background to be able to read. They may even need a particular scheme, such as white text on a black background, to prevent the background from "bleeding" over and obscuring the foreground text. They may need to change the color scheme due to color blindness.
Because different users need different colors and different high contrast settings, it is not sufficient to support only one set of colors or only one high contrast setting.
Development techniques
The following techniques are the minimum required to meet Checkpoint 4.3 from the IBM Java Accessibility Checklist:
- Provide at least three color choices that provide high contrast. White on black, black on white, and yellow on black are examples of high contrast settings.
- Provide the ability for the user to customize color selections for background and foreground. Provide choices with a range of high contrast colors using class JColorChooser.AccessibleJColorChooser (link resides outside of ibm.com)to ensure the color chooser is accessible.
The techniques above are required; the following techniques are recommended to enhance accessibility.
- Avoid using reds and greens together.
- Lighthouse International provides guidelines for effective color contrast on their Web site at www.lighthouse.org/color_contrast.htm. (link resides outside of ibm.com)
Testing techniques
| Action | Result | |
|---|---|---|
| 1 | Visually verify the application provides at least three color combinations with
sufficient contrast using contrast guidelines from Lighthouse International.
|
Pass: The application supports at least three color combinations that provide high contrast such as white on black, black on white or yellow on black. Fail: The application does not support at least three color combinations or the color combinations that are supported do not provide sufficient contrast. |
©2001, 2008 IBM Corporation
Last updated February 15, 2008.
