Australia version. Explains the Australian position: WCAG 2.2 AA as the target for Australian Government sites, and the Disability Discrimination Act for everyone else. US version

Colour Contrast Checker (Australia)

Check colour pairs against WCAG 2.2 AA, the level Australian Government sites target, and test brand colours such as green and gold before they meet DDA complaints.

The interactive tool loads here when JavaScript runs.

About this tool

What is the Color Contrast Checker?

There is no single Australian law that names a contrast ratio. Instead, the Disability Discrimination Act 1992 makes it unlawful to discriminate against people with disability in providing goods, services and facilities (section 24), and a website or app that people cannot read is a way of doing that. WCAG is the measure used to judge whether digital content is accessible, and Australian Government agencies publish accessibility statements that aim for WCAG 2.2 at level AA alongside the Digital Service Standard.

For text, AA means a contrast ratio of at least 4.5:1, or 3:1 for large text (18 point, or 14 point bold). This checker gives the exact ratio, without rounding, so you can tell a pass from a near miss.

National green and gold is a good example of a pairing that needs care: green #00843d on gold #ffcd00 is 3.20:1, which passes AA only for large text. It works for a big heading or a logo, not for body copy.

  • Exact WCAG 2.x contrast ratio from the official luminance formula
  • AA and AAA results for normal and large text
  • No rounding up: 4.499:1 is reported as a fail
  • Accepts #rgb and #rrggbb, with a color swatch for each color
  • Live preview at body, large and large bold sizes
  • Runs in your browser
Read the guide: WCAG Color Contrast: How the Ratio Works and How to Pass AA

Updated

How to use the Color Contrast Checker

  1. Enter the text color in Foreground Color (Text) and the background in Background Color, as hex or with the color swatch.
  2. Read the Contrast Ratio and the Normal Text and Large Text badges: AAA, AA or Fail.
  3. Look at the Live Preview to see the pair at 16px, 24px and 18.66px bold.
  4. Use Swap Colors to test the reversed pair for dark mode, and Copy to paste the result into a ticket or design review.

Worked examples

Green and gold

Input

Text #00843d on #ffcd00

Output

3.20:1: passes AA for large text only

Fine for a 24 px heading, a fail for 16 px body text. White text on the same green (#ffffff on #00843d) is 4.80:1 and passes AA at any size.

Gold text on white

Input

Text #ffcd00 on #ffffff

Output

1.50:1: fails every level

Yellows and golds almost never work as text on white. Use them as a background behind dark text instead.

Pale grey placeholder text

Input

#999999 on white, then #949494 on white

Output

2.84:1 (fails) and 3.03:1 (meets 3:1 for large text and UI components)

Form placeholder and hint text is usually small, so it needs 4.5:1. #767676 (4.54:1) is about the lightest grey that passes on white.

White on a strong red

Input

Text #ffffff on #e4002b

Output

4.84:1: passes AA

Many bright reds sit just above or below 4.5:1 with white, so check the exact brand value rather than assuming.

Background and insight

The formula comes from WCAG 2.0 (2008) and is unchanged in WCAG 2.1 and 2.2. Each sRGB channel is scaled to 0 to 1 and linearised: values at or below 0.04045 are divided by 12.92, the rest go through ((c + 0.055) / 1.055) raised to 2.4. Relative luminance is then 0.2126 R + 0.7152 G + 0.0722 B, which is why green contributes most to perceived brightness and blue barely matters. The contrast ratio is (L1 + 0.05) / (L2 + 0.05) with L1 the lighter color, giving a range from 1:1 to 21:1.

Success Criterion 1.4.3 (AA) asks for 4.5:1 for normal text and 3:1 for large text. 1.4.6 (AAA) raises that to 7:1 and 4.5:1. Large means at least 18 point or 14 point bold. CSS has 96 pixels per inch and 72 points per inch, so that is 24px regular or about 18.66px bold. A common mistake is reading "18" as 18px: a 20px semibold subheading is still normal text under WCAG.

WCAG explicitly says not to round: 4.499:1 does not meet 4.5:1. The successor algorithm being discussed for WCAG 3, APCA, weighs font size and polarity differently and often disagrees with these results, especially for dark mode. For legal and procurement purposes today (ADA cases in the US, EN 301 549 in the EU), WCAG 2 ratios are what auditors check.

Common use cases

  • Design reviews

    Check each text and background pair in a palette before it reaches code, including placeholder and disabled text.

  • Accessibility audits

    Verify findings from automated scanners and get an exact ratio to put in the audit report.

  • Dark mode palettes

    Swap colors to test light text on dark surfaces, where low contrast mistakes are common.

  • Brand color decisions

    Find out whether a brand color can carry white text or needs a darker shade for buttons and links.

Tips and limitations

  • If you build for an Australian Government agency, check its own accessibility statement and procurement terms; they commonly name WCAG 2.2 AA.
  • For state or local government work, check that government's own digital or accessibility standard as well as WCAG.
  • Borders, icons and chart lines need 3:1 against their background (WCAG 1.4.11); this checker shows that too.

Sources and further reading

  1. Disability Discrimination Act 1992, Federal Register of Legislation. Section 24: goods, services and facilities.
  2. Accessibility, Prime Minister of Australia. An agency statement aiming for WCAG 2.2 level AA with the Digital Service Standard.
  3. Understanding Success Criterion 1.4.3: Contrast (Minimum), W3C Web Accessibility Initiative. The 4.5:1 and 3:1 thresholds, large text, and no rounding.

Frequently asked questions

Is WCAG a legal requirement in Australia?

Not by name in an Act. The Disability Discrimination Act 1992 prohibits discrimination in providing goods, services and facilities, and WCAG AA is the usual benchmark for whether a website meets that obligation. Government agencies set WCAG 2.2 AA as their target.

Which WCAG version do Australian Government websites use?

Agency accessibility statements, such as the Prime Minister's website, aim to conform to WCAG 2.2 at level AA together with the Digital Service Standard.

Do green and gold pass colour contrast?

Green #00843d on gold #ffcd00 is 3.20:1, so it passes AA for large text (18 point or 14 point bold) but not for normal body text. White on that green is 4.80:1 and passes for any size.

Does a small business website have to meet WCAG?

The DDA applies to any organisation providing goods or services, whatever its size, so an inaccessible site can lead to a complaint. Meeting WCAG 2.2 AA is the practical way to show the site is accessible.

What contrast do I need for large text?

3:1 at level AA and 4.5:1 at AAA. Large text means at least 18 point (about 24 px) or 14 point bold (about 18.7 px).

Is there an in-depth guide to the Color Contrast Checker?

Yes. “WCAG Color Contrast: How the Ratio Works and How to Pass AA” covers the background, how it works, common pitfalls and worked examples. Read the full guide.