Enum WCAGLevel
Conformance level used when testing a contrast ratio with MeetsWCAG(float, WCAGLevel, bool).
Namespace: Scylla.Core.Util
Assembly: ScyllaCore.dll
Syntax
public enum WCAGLevel
Remarks
The levels come from the Web Content Accessibility Guidelines 2.x success criteria for non-text and text contrast. Each level defines two thresholds: one for standard-sized text and one for large-scale text and graphical elements.
The Xbox Accessibility Guidelines adopt the same numbers, which is why the framework's own component defaults target them.
Fields
| Name | Description |
|---|---|
| AA | Level AA. Requires a contrast ratio of at least 4.5:1 for standard-sized text, and 3:1 for large-scale text and for graphical elements such as icons, focus rings, and control borders. |
| AAA | Level AAA. Requires a contrast ratio of at least 7:1 for standard-sized text, and 4.5:1 for large-scale text. |