WcagHelpers.GetRelativeLuminance method

Version 1.0.2
.NET Framework 4.7
Namespace Skybrud.Colors.Wcag
Assembly Skybrud.Colors.dll

GetRelativeLuminance(RgbColor)

Static

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

public static double GetRelativeLuminance(RgbColor color)

Parameters

color RgbColor

The color.

Returns

The relative luminance.