Template:Background color
Template:Ensure AAA contrast ratio
Usage
Examples
{{Background color|yellow|foo}}
= Hello, world!Template:Ensure AAA contrast ratio{{bg|#FFA8A8|foo}}
= Hello, world!Template:Ensure AAA contrast ratio{{bgc|#FFA8A8|foo|m}}
= Hello, world!Template:Ensure AAA contrast ratio
Parameters
- 1st or
c
= color - 2nd or
t
= text m
= monospace font
Color suggestions
{{bgc|#ff6db6|foobar}}
= foobarTemplate:Ensure AAA contrast ratio{{bgc|#ffb6db|foobar}}
= foobarTemplate:Ensure AAA contrast ratio{{bgc|#b66dff|foobar}}
= foobarTemplate:Ensure AAA contrast ratio{{bgc|#6db6ff|foobar}}
= foobarTemplate:Ensure AAA contrast ratio{{bgc|#b6dbff|foobar}}
= foobarTemplate:Ensure AAA contrast ratio{{bgc|#db6d00|foobar}}
= foobarTemplate:Ensure AAA contrast ratio{{bgc|#24ff24|foobar}}
= foobarTemplate:Ensure AAA contrast ratio{{bgc|#ffff6d|foobar}}
= foobarTemplate:Ensure AAA contrast ratio
See also
Color templates
- {{Background color}} or {{bg}} - sets background color
- {{Color}} or {{Red}} etc. – sets text color
- {{Font color}} – sets both text and background color
- {{Talk quote inline}}
- {{CSScolor}} - sanitizes and partially converts color codes and color names into a format supported by CSS.
- {{resize}}