Content deleted Content added
→Test table: +documentation for contrast borrowed from Template:Color contrast ratio/doc |
|||
Line 28:
|{{#invoke:College color/contrast|testtable}}
}}
As a guide to selecting foreground and background colors for text, the [http://www.w3.org/TR/WCAG20/#visual-audio-contrast Web Content Accessibility Guidelines 2.0 (guideline 1.4)] classifies contrast ratios for ordinary text as follows:
{| class="wikitable"
|+ WCAG 2.0 text contrast ratios
|-
! scope="col" | Font size
! scope="col" | Not Compliant
! scope="col" | Level AA
! scope="col" | Level AAA
|-
| Normal
| < 4.5
| 4.5 to 7.0
| > 7.0
|-
| Large (18 pt or 14 pt bold)
| < 3.0
| 3.0 to 4.5
| > 4.5
|}
Normal wiki-text is rendered by common browsers at roughly 9.5 to 10.5 pt (12.5 to 14 px), depending on skin. Text would need to be about 180% or 140% bold to qualify as "Large" for [http://www.w3.org/TR/WCAG20/#larger-scaledef WCAG purposes].
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
<!-- Categories go here and interwikis go in Wikidata. -->
|