Document containing text on a background colour. The foreground and background colours are defined in the text and bgcolor attributes on the body element. The foreground colour is black (RGB code #000000); the background colour has RGB code #009999. Sufficient contrast for foreground text and background colour johannes.koch@fit.fraunhofer.de en Copyright BenToWeb 2004-2007 2005-08-25 validated

The test is intended to pass because the contrast ratio is higher than 5:1.

The formula to be used for calculating the contrast ratio can be found at http://www.w3.org/TR/2007/WD-WCAG20-20070517/#contrast-ratiodef.

oneExpert

The foreground and background colours have enough contrast.

The luminosity contrast ratio is 6.12.

This test case maps to technique G18: Ensuring that a contrast ratio of at least 5:1 exists between text and background behind the text

The foreground and background colours have enough contrast.

Online version: sc1.4.1_l2_009.

The WCAG WG hasn't provided threshold values for colour contrast yet.