New to Telerik UI for ASP.NET Core? Download free 30-day trial
ASP.NET Core ColorGradient Contrast Tool
- EXAMPLE
- VIEW SOURCE
-
Change Theme
defaultDefault Theme
- Main
- Main Dark
- Nordic
- Ocean Blue
- Ocean Blue A11Y
- Purple
- Turquoise
Bootstrap Theme- Main
- Bootstrap 3
- Bootstrap 3 Dark
- Main Dark
- Nordic
- Turquoise
- Turquoise Dark
- Urban
- Vintage
Material Theme- Main
- Arctic
- Lime Dark
- Main Dark
- Nova
Classic Theme- Main
- Green
- Green Dark
- Lavender
- Lavender Dark
- Main Dark
- Metro
- Metro Dark
- Moonlight
- Opal
- Opal Dark
- Silver
- Silver Dark
- Uniform
Fluent Theme- Main
Also available for:
CLIENT-SIDE API SERVER-SIDE APIDescription
The Telerik ColorGradient for ASP.NET Core component provides options for checking the color contrast ratio between two colors. Color contrast between text and background is important on web pages. It affects some people’s ability to perceive the information.
This tool follows the Web Content Accessibility Guidelines (WCAG), which are a series of recommendations for making the web more accessible.
Regarding colors, the WCAG standard defines two levels of contrast ratio:
- AA (minimum contrast)—The level AA requires a contrast ratio of at least 4.5:1 for normal text.
- AAA (enhanced contrast)—The level AAA requires a contrast ratio of at least 7:1 for normal text.
The example demonstrates how to display the Color Contrast Tool in the ColorGradient.