本文へスキップ

色コントラストチェッカー

開発者ツール

相対輝度に基づくWCAG AA/AAA比率を算出

回答概要

Color Contrast Checker: WCAG AA/AAA ratios via relative luminance. Color Contrast Checker uses standard developer formulas to compute accurate results instantly.

本文サンプル Sample text
大見出し Large heading
コントラスト比
7.00:1
AAA
AA 正文 4.5:1
合格
AA 大字 3:1
合格
AAA 正文 7:1
合格
AAA 大字 4.5:1
合格

コントラスト位置決め

Fail
AA大文字のみ
AA
AAA

7.00:1 — AAA

WCAG 2.1 閾値対照

レベル本文大きな文字現在判定
AA≥ 4.5:1≥ 3:1合格
AAA≥ 7:1≥ 4.5:1合格

大きな文字 = ≥18pt(24px)または≥14pt(18.7px)太字。非テキストUI(フォーカス枠、コントロール境界)は3:1が必要。

計算手順

  1. 1Relative luminance: fg = 0.0999, bg = 1.0000 (sRGB → linear → 0.2126R+0.7152G+0.0722B)
  2. 2コントラスト比 = (明るい方 + 0.05) / (暗い方 + 0.05) = 7.00:1
  3. 3WCAG 2.1:AAレベルは通常の文字4.5:1、大きな文字(≥18ptまたは14pt太字)3:1を要求;AAAレベルは7:1 / 4.5:1を要求します。
約8%の男性が赤緑色覚異常——色だけで情報を伝えるのは絶対に避け、アイコン/文字と併用してください。コントラスト要件はUIコンポーネントの境界にも適用(WCAG 1.4.11:フォーカスインジケータとコントロールのエッジは3:1が必要)。

このツールはお役に立ちましたか?

使い方

  1. Paste or type content: drop code/text into the Color Contrast Checker or fill the parameters.
  2. Choose mode/options: switch format, rules or processing as needed.
  3. Live output: results appear instantly — nothing is submitted, data stays in your browser.
  4. One-click copy: copy the output straight into your development environment.

主なポイント

  • Color Contrast Checker is a free online developer tool — open and use, no sign-up.
  • All calculations run locally in your browser; your data never leaves the device.
  • Key capability: WCAG AA/AAA ratios via relative luminance.
  • Results come with formulas and reference tables so you can verify every number.

原理と計算式

Color Contrast Checker formula

Color Contrast Checker uses standard developer formulas to compute accurate results instantly.

よくある質問

How do I use the Color Contrast Checker?
Open the page and fill in the input fields — results update automatically. WCAG AA/AAA ratios via relative luminance.
Are the results accurate?
Yes. Standard formulas and conversion factors are used and verified.
Is it free? Do I need to sign up?
Completely free. No registration, login or download required.
Does it work on mobile?
Yes. The responsive design works on phones, tablets and desktops.
Is my data saved?
No. Everything runs locally in your browser.

関連ツール

関連ガイド

出典と更新情報

Based on RFC 4648, ECMA-262 and related specifications. Last updated: 2025-07

最終更新日:

このページの計算式と内容はYiJianSuanチームにより確認されています。学習参考用であり、実際の業務では公式の発表を優先してください。

内容はYiJianSuan編集チームにより維持管理され、定期的に確認されています。更新・審査プロセスはこちら編集ポリシー.

このページを引用: YiJianSuan. 色コントラストチェッカー[EB/OL]. https://www.yijiansuan.com/ja/c/dev/contrast-check

本ツールが提供する結果は参考用であり、専門的な助言を構成するものではありません。公式の計算結果を優先してください。