New to Telerik UI for ASP.NET AJAXStart a free 30-day trial

Provide Good Color Contrasts for Content

Accessibility is an important part of web design. By choosing the right colors, you can ensure that all visitors to your site can read your content. The user can change the color appearance of text in RadEditor"s content area using the ForeColor and BackColor tools. The W3C recommendations define three levels of conformance to their guidelines. Priority 1, 2 and 3. Their 2.0 color contrast algorithms utilize two of these-- Priority 2 (AA), and Priority 3 (AAA). Whether or not you need to reach an AAA conformance depends on your target audience.

You can find below examples of contents with various contrast ratios.

Content with contrast ratio, which passes at 3:1

Text Color HEXBackground color: #000033Contrast
#C00Sample3.40
#C03Sample3.45
#C06Sample3.59
#C09Sample3.84
#C0CSample4.24
#C0FSample4.78

Content with contrast ratio, which passes at 4.5:1

Text Color HEXBackground color: #000033Contrast
#C60Sample5.22
#C63Sample5.26
#C66Sample5.40
#C69Sample5.66
#C6CSample6.05
#C6FSample6.60

Content with perfect color contrast ratio, which passes at 7:1

Text Color HEXBackground color: #000033Contrast
#6F0Sample15.14
#6F3Sample15.19
#6F6Sample15.33
#6F9Sample15.58
#6FCSample15.98
#6FFSample16.52

Content demonstrating bad color contrast rating

Text Color HEXBackground color: #000033Contrast
#000Sample1.05
#003Sample1.00
#006Sample1.14
#009Sample1.39
#00CSample1.79
#00FSample2.33

Another way to apply color decoration to HTML content is through CSS stylesheet. Here is an example, which provides good color contrast based on CSS that can be applied to the content area of RadEditor:

CSS
body
{
	font-size: 18px;
	color: #99ff99;
	background-color: #333333;
}

The tag above should be inserted in HTML view mode of RadEditor.

More information on color contrast

https://www.w3.org/TR/WCAG20-TECHS/G17

https://www.w3.org/TR/WCAG20-TECHS/G18.html

https://www.w3.org/TR/WCAG20-TECHS/G145.html

Not finding the help you need?
Contact Support