入力とオプション
前景色/背景色のペアを WCAG 2.1 AA と AAA のコントラスト基準に照らしてチェックします。
Aa — Sample text
The quick brown fox jumps over the lazy dog.
- コントラスト比
- 17.16:1
- 評価
- AAA
- 通常テキスト AAA
- Pass
すべての計算と変換は V8 エンジンまたは WebAssembly によりブラウザ内でローカルに実行されます。ファイルやテキストがデバイスの外に出ることはありません。
概要
A palette can look good and still fail accessibility. Enter a foreground and background colour to get the WCAG contrast ratio and a clear pass/fail breakdown for normal text, large text and UI components.
使い方
形式と仕様
FAQ
Which thresholds are used?
WCAG 2.1: 4.5:1 for normal text and 3:1 for large text at AA; 7:1 and 4.5:1 at AAA. Non-text UI components use 3:1.
What counts as large text?
At least 18pt (24px) regular, or 14pt (18.66px) bold.
Does alpha affect the result?
Alpha is not modelled. Blend semi-transparent colours into an opaque value before checking them.
Is the ratio rounded?
It is displayed to two decimals, but pass/fail is decided from the unrounded value.
制限事項
- Semi-transparent colours are not composited; alpha must be resolved beforehand.
- Only WCAG 2.x relative luminance contrast is calculated, not APCA.
- The result describes the colour pair only, not font weight, size or rendering conditions.