{"id":46,"date":"2026-10-17T13:15:23","date_gmt":"2026-10-17T13:15:23","guid":{"rendered":"https:\/\/refracttools.com\/blog\/?p=46"},"modified":"2026-10-17T13:15:24","modified_gmt":"2026-10-17T13:15:24","slug":"wcag-contrast-ratio","status":"publish","type":"post","link":"https:\/\/refracttools.com\/blog\/ui-design\/wcag-contrast-ratio\/","title":{"rendered":"WCAG colour contrast ratios explained: AA vs AAA"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">WCAG colour contrast ratios set how different text and background colours must be: at least 4.5:1 for normal text and 3:1 for large text to meet level AA. Level AAA raises those to 7:1 and 4.5:1. Icons, form borders and other interface parts need 3:1 against whatever sits next to them.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This guide explains what each rule covers, what counts as large text, how the ratio is calculated, the exceptions, and where the newer APCA method fits in.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Last checked: October 2026.<\/em><\/p>\n\n\n\n<div class=\"wp-block-group is-style-refract-takeaways is-layout-constrained wp-block-group-is-layout-constrained\">\n<h3 class=\"wp-block-heading\">Key takeaways<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>AA: 4.5:1 for normal text, 3:1 for large text. AAA: 7:1 and 4.5:1.<\/li>\n\n\n<li>Large text means at least 24px, or about 18.5px and up when bold (the W3C\u2019s own approximations).<\/li>\n\n\n<li>Icons, input borders and focus indicators need 3:1 against adjacent colours (success criterion 1.4.11).<\/li>\n\n\n<li>Ratios are never rounded up: 4.49:1 fails the 4.5:1 rule.<\/li>\n\n\n<li>WCAG 2.2 is the current standard. APCA is not part of it, and WCAG 3&#8217;s contrast method is still undecided.<\/li>\n<\/ul>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">WCAG contrast ratio requirements<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><div class=\"table-scroll\" tabindex=\"0\" role=\"region\" aria-label=\"Scrollable table\"><table><thead><tr><th>What<\/th><th>Level AA<\/th><th>Level AAA<\/th><th>Success criterion<\/th><\/tr><\/thead><tbody><tr><td>Normal text<\/td><td>4.5:1<\/td><td>7:1<\/td><td>1.4.3 \/ 1.4.6<\/td><\/tr><tr><td>Large text (24px+, or ~18.5px+ bold)<\/td><td>3:1<\/td><td>4.5:1<\/td><td>1.4.3 \/ 1.4.6<\/td><\/tr><tr><td>Icons, input borders, focus indicators, chart lines<\/td><td>3:1<\/td><td>No higher level<\/td><td>1.4.11<\/td><\/tr><tr><td>Logos, decorative text, disabled controls<\/td><td>No requirement<\/td><td>No requirement<\/td><td>Exceptions<\/td><\/tr><\/tbody><\/table><\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Most accessibility laws and procurement rules point to level AA, so treat AA as the minimum. AAA is a sensible target for long-form reading, but the W3C does not expect whole sites to meet every AAA criterion.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What counts as large text<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">WCAG defines large text as at least 18 point, or 14 point when bold. The W3C gives these as approximately 24px and 18.5px. In practice:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Body copy at 16px or 18px is normal text and needs 4.5:1, even when it feels large.<\/li>\n\n\n<li>Headings at 24px and above can use 3:1.<\/li>\n\n\n<li>Bold text from 19px is safely large, which helps with buttons and labels.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Thin or decorative typefaces can be harder to read than their size suggests. The W3C notes that very light weights may need more contrast than the minimum, so don&#8217;t treat 3:1 as a target for hairline fonts.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How the contrast ratio is calculated<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Each colour is converted to its relative luminance, a value from 0 for black to 1 for white that reflects how bright the colour looks to the eye. The ratio is then:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>contrast ratio = (L1 + 0.05) \/ (L2 + 0.05)\n\nL1 = relative luminance of the lighter colour\nL2 = relative luminance of the darker colour<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The result runs from 1:1 (identical colours) to 21:1 (black on white). Because green contributes far more to luminance than blue, two colours that look equally strong can score very differently.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Some real values against a white background show how fine the margins are:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><div class=\"table-scroll\" tabindex=\"0\" role=\"region\" aria-label=\"Scrollable table\"><table><thead><tr><th>Text colour<\/th><th>Ratio on white<\/th><th>Normal text (AA)<\/th><\/tr><\/thead><tbody><tr><td><code>#767676<\/code> mid grey<\/td><td>4.54:1<\/td><td>Passes<\/td><\/tr><tr><td><code>#777777<\/code> one step lighter<\/td><td>4.48:1<\/td><td>Fails<\/td><\/tr><tr><td><code>#6b7280<\/code> slate grey<\/td><td>4.83:1<\/td><td>Passes<\/td><\/tr><tr><td><code>#9ca3af<\/code> light grey<\/td><td>2.54:1<\/td><td>Fails<\/td><\/tr><tr><td><code>#3b82f6<\/code> bright blue<\/td><td>3.68:1<\/td><td>Large text only<\/td><\/tr><tr><td><code>#2563eb<\/code> deeper blue<\/td><td>5.17:1<\/td><td>Passes<\/td><\/tr><tr><td><code>#595959<\/code> dark grey<\/td><td>7.01:1<\/td><td>Passes AAA<\/td><\/tr><\/tbody><\/table><\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The W3C is explicit that results should not be rounded: 4.499:1 does not meet 4.5:1. That is why <code>#777777<\/code> fails while <code>#767676<\/code>, one shade darker, passes.<\/p>\n\n\n<aside class=\"tool-card tool-card--inline\"><span class=\"swatch\" style=\"background:linear-gradient(90deg,#13161c 0 50%,#ffdd00 50%)\" aria-hidden=\"true\"><\/span><div class=\"tool-card__body\"><p class=\"tool-card__eyebrow\">Free tool<\/p><p class=\"tool-card__name\">Contrast checker &amp; palette generator<\/p><p class=\"tool-card__blurb\">WCAG 2.2 contrast checks, fixes and accessible palettes.<\/p><\/div><a class=\"btn primary\" href=\"https:\/\/refracttools.com\/contrast-checker\/\">Try it free <span aria-hidden=\"true\">\u2192<\/span><\/a><\/aside>\n\n\n\n<h2 class=\"wp-block-heading\">Interface components and icons<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Success criterion 1.4.11, non-text contrast, asks for 3:1 between the parts of an interface someone needs to see and the colours next to them. That includes:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Input and checkbox borders, when the border is what shows where the field is.<\/li>\n\n\n<li>Icons that carry meaning without a text label, such as a search or close icon.<\/li>\n\n\n<li>Focus indicators and the selected state of tabs or toggles.<\/li>\n\n\n<li>Lines and segments in charts that are needed to understand the data.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Pale grey input borders are the most common failure. A border of <code>#d1d5db<\/code> on white measures only 1.47:1. Either darken the border or give the field a background that contrasts with the page.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Exceptions and tricky cases<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Logos and brand names<\/strong> have no contrast requirement.<\/li>\n\n\n<li><strong>Disabled controls<\/strong> and purely decorative text are exempt.<\/li>\n\n\n<li><strong>Placeholder text<\/strong> is still text. If it gives information, such as an example format, it needs 4.5:1.<\/li>\n\n\n<li><strong>Text over images, gradients or glass<\/strong> must pass at its weakest point. Check against the lightest and darkest areas behind the text. The <a href=\"https:\/\/refracttools.com\/blog\/css-techniques\/glassmorphism-css-backdrop-filter\/\">glassmorphism guide<\/a> covers this for frosted panels.<\/li>\n\n\n<li><strong>Soft UI styles<\/strong> such as <a href=\"https:\/\/refracttools.com\/neumorphism-generator\/\">neumorphism<\/a> rely on subtle shadows, so buttons often fail 1.4.11. Add a border or a stronger edge to anything people need to click.<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-group is-style-refract-callout is-layout-constrained wp-block-group-is-layout-constrained\">\n<p class=\"wp-block-paragraph\"><strong>Tip:<\/strong> When text fails, darken or lighten the text before touching the background. Changing the text colour within the same hue usually keeps the design intact and fixes the ratio in one step.<\/p>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">APCA and WCAG 3<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">APCA is an alternative contrast method that accounts for font size, weight and whether text is light on dark or dark on light. It was included in early WCAG 3 drafts but removed in 2023, and the April 2026 editor&#8217;s draft says the contrast algorithm for WCAG 3 is yet to be determined. WCAG 3 itself is still a working draft.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For now, WCAG 2.2&#8217;s ratio is the standard you will be measured against. APCA can be a useful second opinion, especially for dark mode, but it doesn&#8217;t replace the 4.5:1 and 3:1 rules.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Check your colours<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Paste your text and background colours into the <a href=\"https:\/\/refracttools.com\/contrast-checker\/\">contrast checker<\/a>. It tests the pair against every rule above, never rounds up, and suggests the closest passing colour in the same hue when a pair fails. It also builds an 11-step palette from your brand colour, with a pass or fail for white and black text on every swatch.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Sources: <a href=\"https:\/\/www.w3.org\/WAI\/WCAG22\/Understanding\/contrast-minimum.html\" rel=\"noopener\" target=\"_blank\">Understanding SC 1.4.3 (W3C)<\/a>, <a href=\"https:\/\/www.w3.org\/TR\/wcag3\/\" rel=\"noopener\" target=\"_blank\">WCAG 3.0 working draft<\/a>.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>WCAG asks for 4.5:1 contrast for normal text and 3:1 for large text at level AA. Here is what each rule covers, how the ratio is calculated, and the exceptions.<\/p>\n","protected":false},"author":1,"featured_media":66,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_refract_tool":"contrast-checker","footnotes":""},"categories":[24],"tags":[20,28,13,29],"class_list":["post-46","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ui-design","tag-accessibility","tag-colour","tag-ui-design","tag-wcag"],"_links":{"self":[{"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/posts\/46","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/comments?post=46"}],"version-history":[{"count":1,"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/posts\/46\/revisions"}],"predecessor-version":[{"id":63,"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/posts\/46\/revisions\/63"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/media\/66"}],"wp:attachment":[{"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/media?parent=46"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/categories?post=46"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/tags?post=46"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}