WcagHelpers Class

Version 1.0.2
.NET Framework 4.7
Namespace Skybrud.Colors.Wcag
Assembly Skybrud.Colors.dll
Visibility Public
Inheritance Object

Static helper class for various WCAG calculations.

public class WcagHelpers { }

Methods

Calculates the constrast ratio of to given colors as specified by the WCAG 2.0 specification.

Calculates the relative luminance of a given color as specified by the WCAG 2.0 specification.