Skip to content

How to Check Colour Contrast for Accessibility (WCAG Explained)

If text does not stand out enough from its background, people with low vision, colour-blindness, or just a phone in bright sunlight cannot read it. Contrast is one of the easiest accessibility problems to measure and fix.

What “contrast ratio” means

Contrast is expressed as a ratio between the lightness of two colours, from 1:1 (identical, invisible) to 21:1 (pure black on pure white). It is calculated from the relative luminance of each colour, which weights green more heavily than red or blue because that is how human vision works. You do not need to do the maths — a checker does it — but it is why two colours that look different can still fail.

The WCAG thresholds

  • AA, normal text: 4.5:1 — the common minimum, and what most organisations are expected to meet.
  • AA, large text: 3:1 — “large” means about 24px, or 19px bold, and above.
  • AAA, normal text: 7:1 — a stricter target for content that needs to be readable by as many people as possible.

These apply to text and to meaningful UI elements like icons and form borders. Purely decorative graphics are exempt.

How to check a colour pair

Take the text colour and the colour directly behind it (not the page background if there is a card or overlay in between) and put both into a contrast checker. It will give you the ratio and tell you which levels pass. Check the states people actually see: hover, visited links, placeholder text, disabled buttons, and text over images.

Fixing a pair that fails

  • Darken the text or lighten the background — usually you only need to nudge the lightness, keeping the hue, so the brand still looks right.
  • Add a solid backing behind text that sits on a photo or gradient.
  • Increase weight or size — large text has a lower threshold, so bumping a subheading to bold can bring it into compliance.
  • Never rely on colour alone to convey meaning (e.g. red/green for error/success) — add an icon or label for people who cannot distinguish them.

Check yours now

Paste any HEX, RGB or HSL colour into our Color Converter and it shows the contrast ratio against white and black text with an AA/AAA badge, plus a matching palette if you need an accessible accent colour. It runs entirely in your browser.

More guides

How to Organise a Secret Santa Online: Rules, Budget and a Fair Draw

Read the guide →

Brazil's 13th Salary in 2026: How to Calculate It, When It Is Paid and the Net Amount

Read the guide →

Vacation Pay in Brazil 2026: The One-Third Bonus and Selling 10 Days, Explained

Read the guide →

FGTS Birthday Withdrawal (Saque-Aniversário): How Much You Can Take Out and When It Pays Off

Read the guide →

How to Calculate Percentages: Formulas, Examples and the Most Common Mistakes

Read the guide →

The Rule of Three: How to Use It for Direct and Inverse Proportions, with Worked Examples

Read the guide →

BMI: How to Calculate Your Body Mass Index and What Each Range Means

Read the guide →

How to Calculate Severance Pay in Brazil (Rescisão) in 2026: Step by Step

Read the guide →

Net Salary in Brazil 2026: How to Calculate INSS and Income Tax (with the New Exemption)

Read the guide →

Simple Interest: Formula, Worked Examples and How It Differs from Compound Interest

Read the guide →

Gestational Age: How to Count Pregnancy Weeks and Work Out the Due Date

Read the guide →

Overtime and Night-Shift Pay in Brazil (CLT) 2026: How to Calculate

Read the guide →

CDB, Tesouro Selic or LCI/LCA: Which Pays More in Brazil? Tax, FGC and Liquidity

Read the guide →

SAC or Price: Which Brazilian Loan Amortisation Is Better? A Worked Example

Read the guide →

Black Friday 2026: How to Tell if a Discount Is Real (and Pay Less)

Read the guide →

Working on Christmas and New Year in Brazil: Holiday Pay (CLT)

Read the guide →

Collective Vacation in Brazil (Férias Coletivas): CLT Rules and Pay

Read the guide →

Brazil's Minimum Wage 2027: Projected Value and Who It Affects

Read the guide →

13th Salary in Brazil: Pay Off Debt or Invest? Decide with Numbers

Read the guide →

Brazil Holidays 2027: Calendar, Long Weekends and Business Days

Read the guide →

INSS for the Self-Employed and MEI in Brazil: How Much to Pay in 2026

Read the guide →

Unemployment Insurance in Brazil 2026 (Seguro-Desemprego): Who Gets It, How Much and How Many Installments

Read the guide →

Ethanol or Petrol? The 70% Rule for Flex Cars, and When It Is Wrong

Read the guide →

Electricity Bill: How Much Each Appliance Uses and How to Work It Out

Read the guide →

How to Compress a Video for WhatsApp, E-mail or Discord: Size, Length and Resolution

Read the guide →

How to Cut a Video Without Losing Quality (and Why the Cut Can Start a Bit Early)

Read the guide →

How to Make a Ringtone from a Song on Android and iPhone

Read the guide →

Video to GIF: How to Make an Animated GIF That Is Not Huge

Read the guide →

Notice Period in Brazil (Aviso Prévio) 2026: How Many Days, Worked or Paid in Lieu

Read the guide →

Dismissal by Agreement in Brazil (Art. 484-A): What You Get, FGTS and Unemployment Insurance

Read the guide →

Transport Voucher in Brazil (Vale-Transporte): The 6% Deduction and When to Opt Out

Read the guide →

Family Allowance in Brazil 2026 (Salário-Família): R$ 67.54 per Child and Who Qualifies

Read the guide →

Unhealthy Work Allowance in Brazil (Insalubridade) 2026: 10, 20 or 40% of the Minimum Wage

Read the guide →

What a CLT Employee Costs in Brazil in 2026: Charges, Reserves and an Example

Read the guide →

Simples Nacional Fator R: How to Calculate It and Move From Annex V to III

Read the guide →

CLT or PJ in Brazil: How to Compare a Job Offer With 2026 Numbers

Read the guide →

Compound Interest Explained: How Small Monthly Savings Grow

Read the guide →

How to Compress Images Without Losing Quality

Read the guide →

How to Create a Strong Password You Can Actually Remember

Read the guide →

How to Scan Documents With Your Phone (and Get a Clean PDF)

Read the guide →