Knowledge (XXG)

Module:Color contrast/doc

Source 📝

71: 31: 111: 198: 124: 165: 38: 176: 187: 143: 85: 279:
To determine which of two colors (color2a and color2b) has the greater contrast ratio with a particular color (color1):
120: 89: 52: 97: 238: 293:{{#invoke:Color contrast|styleratio|css style statement string|default background color|default text color}} 154: 46: 17: 41: 290:
To compute the contrast ratio between the background and text colors specified in a css style string:
231: 96:. The tested changes can be added to this page in a single edit. Consider discussing changes on the 221: 253:
To use this module, you may use one of the above listed templates or invoke the module directly
84:
To avoid major disruption and server load, any changes should be tested in the module's
216: 93: 211: 78: 245:
is the main guideline for creating accessible interfaces on the web.
286:{{#invoke:Color contrast|greatercontrast|color1|color2a|color2b}} 79:
approximately 528,000 pages, or roughly 1% of all pages
242: 55:
and other content that is not part of the original module page.
105: 65: 25: 282:{{Greater color contrast ratio|color1|color2a|color2b}} 275:{{#invoke:Color contrast|ratio|color1|color2|error=?}} 116:
This module depends on the following other modules:
268:To compute a contrast ratio between two colors: 271:{{Color contrast ratio|color1|color2|error=?}} 8: 7: 264:{{#invoke:Color contrast|lum|color}} 207:It is also used for tracking within 257:To compute relative luminescence: 136:This module is used primarily by 61: 51:It may contain usage information, 239:stated in WCAG 2.x specifications 121:Module:Color contrast/colors 109: 69: 29: 1: 199:Greater color contrast ratio 77:This Lua module is used on 309: 166:Color contrast conformance 227:and for documentation in 177:Ensure AAA contrast ratio 100:before implementing them. 92:subpages, or in your own 188:Ensure AA contrast ratio 237:The formulas used are 47:Module:Color contrast 18:Module:Color contrast 260:{{ColorToLum|color}} 232:Module:College color 144:Color contrast ratio 222:Module:Episode list 44: 134: 133: 104: 103: 59: 58: 36: 300: 294: 287: 283: 276: 272: 265: 261: 203: 197: 192: 186: 181: 175: 170: 164: 159: 153: 148: 142: 113: 112: 106: 73: 72: 66: 33: 32: 26: 308: 307: 303: 302: 301: 299: 298: 297: 292: 291: 285: 281: 280: 274: 270: 269: 263: 259: 258: 251: 201: 195: 190: 184: 179: 173: 168: 162: 157: 151: 146: 140: 130: 110: 83: 70: 63: 60: 50: 30: 22: 21: 20: 12: 11: 5: 306: 304: 296: 295: 288: 277: 266: 250: 247: 235: 234: 225: 224: 219: 217:Module:Userbox 214: 205: 204: 193: 182: 171: 160: 149: 132: 131: 129: 128: 117: 114: 102: 101: 94:module sandbox 74: 57: 56: 34: 24: 23: 15: 14: 13: 10: 9: 6: 4: 3: 2: 305: 289: 278: 267: 256: 255: 254: 248: 246: 244: 240: 233: 230: 229: 228: 223: 220: 218: 215: 213: 212:Module:Navbox 210: 209: 208: 200: 194: 189: 183: 178: 172: 167: 161: 156: 155:RGBColorToLum 150: 145: 139: 138: 137: 126: 122: 119: 118: 115: 108: 107: 99: 95: 91: 87: 81: 80: 75: 68: 67: 64: 54: 48: 43: 40: 39:documentation 35: 28: 27: 19: 252: 236: 226: 206: 202:}} 196:{{ 191:}} 185:{{ 180:}} 174:{{ 169:}} 163:{{ 158:}} 152:{{ 147:}} 141:{{ 135: 76: 62: 90:/testcases 53:categories 37:This is a 98:talk page 86:/sandbox 125:sandbox 42:subpage 249:Usage 16:< 243:WCAG 45:for 284:or 273:or 262:or 88:or 241:. 127:) 123:( 82:. 49:.

Index

Module:Color contrast
documentation
subpage
Module:Color contrast
categories
approximately 528,000 pages, or roughly 1% of all pages
/sandbox
/testcases
module sandbox
talk page
Module:Color contrast/colors
sandbox
Color contrast ratio
RGBColorToLum
Color contrast conformance
Ensure AAA contrast ratio
Ensure AA contrast ratio
Greater color contrast ratio
Module:Navbox
Module:Userbox
Module:Episode list
Module:College color
stated in WCAG 2.x specifications
WCAG

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.