Pricing
Home/Free tools/Color contrast checker
Updated November 24, 2026

Color contrast checker

Contrast ratio of two colors, checked against WCAG AA and AAA

  • Free, no account needed
  • Runs in your browser: nothing you type is sent anywhere

HEX, rgb() or hsl(), for example #767676

HEX, rgb() or hsl(), for example #767676

Preview in your colors

Large text at 24 px

Normal text at 16 px. This is how body copy, captions and form labels read in these two colors.

Outline button

Contrast ratio

4.54:1

From 1:1 (no contrast) to 21:1 (black on white). Cut to two decimals, never rounded up.

Normal text, AA (4.5:1)
Pass
Large text, AA (3:1)
Pass
Normal text, AAA (7:1)
Fail
Large text, AAA (4.5:1)
Pass
UI components and graphics (3:1)
Pass

Large text is at least 18 pt (24 px), or 14 pt (about 18.7 px) in bold.

What the contrast ratio tells you

The contrast ratio compares how light two colors are, from 1:1 for two identical colors to 21:1 for black on white. The Web Content Accessibility Guidelines (WCAG) set minimum ratios so text stays readable for people with low vision or color vision deficiencies, and on dim screens or in bright light.

Large text needs less contrast than body copy because its letterforms are easier to make out. WCAG counts text as large from 18 pt (24 px), or from 14 pt (about 18.7 px) when it is bold. This tool uses the WCAG 2.x ratio; newer methods such as APCA measure contrast differently and are not part of WCAG 2.

  • Normal text: 4.5:1 for level AA, 7:1 for level AAA
  • Large text: 3:1 for level AA, 4.5:1 for level AAA
  • Icons, input borders, focus rings and chart lines (WCAG 2.1, success criterion 1.4.11): 3:1 against the colors next to them

How the ratio is calculated

Each color is turned into a relative luminance between 0 (black) and 1 (white). The red, green and blue channels are first converted from their screen values to linear light, then weighted by how bright each one looks to the eye: green counts most, blue least.

The ratio then divides the lighter luminance by the darker one, each plus 0.05. The thresholds are exact, so 4.49:1 does not pass a 4.5:1 requirement.

Channel c = value ÷ 255
Linear = c ÷ 12.92 if c ≤ 0.04045, else ((c + 0.055) ÷ 1.055)^2.4
L = 0.2126 × R + 0.7152 × G + 0.0722 × B
Ratio = (L lighter + 0.05) ÷ (L darker + 0.05)

#767676 on #FFFFFF: L = 0.1812 and 1
(1 + 0.05) ÷ (0.1812 + 0.05) = 4.54:1

Checking colors in studio work

Contrast problems are cheapest to fix while a palette is still a proposal. Check brand colors against the backgrounds they will actually sit on, light and dark, before they go into a style guide or a client presentation.

If a brand color fails for body text, it can often still work for large headings, icons or backgrounds, with a darker or lighter shade for text.

  • Check every state, not just the default: links, hover and focus colors, placeholder text and error messages
  • For text on a photo or a gradient, check against the lightest and the darkest area behind the text
  • Do not use color as the only signal: pair red and green states with words or icons
  • Logos and inactive (disabled) controls have no contrast requirement under WCAG

A tool by Lyniti

Keep the palette next to the feedback

Lyniti connects briefs, visual files, client feedback, approvals, schedules and billing by project, so the colors you checked and the comments on them stay with the work.

See Lyniti for design studios →

Related tools

All free tools →
  • Color converter→One color as HEX, RGB, HSL, OKLCH and OKLab, ready to copy
  • Color palette generator→Harmonies and a 50–950 scale from one color, or the main colors of an image
  • Px to rem converter→Pixels to rem and back for any root size, with a table to copy from

Embed this tool

Add it to your own site or help centre. It runs in your visitors’ browsers, like here, and links back to this page.

<iframe src="https://lyniti.com/tools/color-contrast-checker/embed" title="Color contrast checker" width="100%" height="760" style="border:0;max-width:100%" loading="lazy"></iframe>

Frequently asked

questions

What contrast ratio does WCAG AA require?

At least 4.5:1 for normal text and 3:1 for large text. Since WCAG 2.1, icons, form field borders and other meaningful graphics also need 3:1 against the colors around them. Level AAA raises the text minimums to 7:1 and 4.5:1.

What counts as large text?

Text of at least 18 point, which is 24 CSS pixels, or at least 14 point (about 18.7 px) when it is bold. Everything smaller is normal text and needs the higher ratio.

Can I round 4.48:1 up to 4.5:1?

No. The WCAG thresholds are exact, so 4.48:1 fails AA for normal text. This checker cuts the ratio to two decimals instead of rounding it, so a ratio shown as 4.50:1 really passes.

Do logos and disabled buttons need enough contrast?

WCAG makes an exception for text that is part of a logo or brand name, for inactive interface controls and for purely decorative text. Good contrast still helps people find a disabled button and read why it is disabled.

Projects, clients and finance in one workspace

Lyniti helps agencies, consultancies, studios, and service teams manage projects, clients, approvals, invoices, bookkeeping, and finance in one workspace.

See it in actionSee it in actionSee Pricing

The all-in-one business collaboration platform that replaces multiple tools, streamlines workflows, and reduces costs for modern teams.

Product

  • Features
  • Pricing
  • Documentation

Features

  • Chat
  • Bookkeeping
  • Double-entry
  • Finances
  • Financial Approvals
  • Invoices
  • Whiteboard
  • Files
  • Meet
  • Tasks
  • Calendar
  • CRM

Solutions

  • Agencies
  • Operations
  • Finance & Admin
  • Projects
  • Freelancers
  • Governance
  • Teams + Finance
  • Projects + Bookkeeping
  • Design studios
  • Consultants
  • Remote teams
  • Projects + Invoicing
  • Client Portal
  • Projects + Approvals

Compare

  • vs 17hats
  • vs Airtable
  • vs Asana
  • vs Basecamp
  • vs ClickUp
  • vs Discord
  • vs Dropbox
  • vs Google Workspace
  • vs Jira
  • vs Linear
  • vs Microsoft Teams
  • vs Miro
  • vs monday.com
  • vs Notion
  • vs Plutio
  • vs QuickBooks
  • vs Rock
  • vs Salesforce
  • vs Slack
  • vs Smartsheet
  • vs Trello
  • vs Wimi
  • vs Wrike

Free tools

  • Invoice generator
  • Quote generator
  • VAT calculator
  • Profit margin calculator
  • Hourly rate calculator
  • Gantt chart maker
  • Online whiteboard
  • Time zone meeting planner
  • UTM builder
  • Email signature generator
  • Image resizer
  • Color contrast checker
  • QR code generator

Company

  • About
  • Blog
  • support@lyniti.com
  • Service status

Legal

  • Trust Center
  • Privacy Policy
  • Terms of Service
  • Cookie Policy
  • Data Processing Agreement
  • Imprint

© 2026 Lyniti. All rights reserved.

Made with love and Lyniti