Skip to content
Accessibility

Brand colours for your website: readable, high-contrast

Turn a logo colour into a web palette: text, link, button, focus and dark mode with enough WCAG 2.2 contrast, fully calculated and with a practical checklist.

20 min read FarbenKontrastBarrierefreiheitFlow DesignWCAG

Your logo colour was chosen for the sign above the door, the letterhead and the company van, not for body text on a white background. Even so, many websites use it unchanged for headings, links and buttons, and that is exactly where it causes trouble. On 83.9 percent of the home pages of the top one million websites, WebAIM found low-contrast text in February 2026, up from 79.1 percent a year earlier (WebAIM Million 2026). That made low contrast the most commonly detected accessibility issue in the study. This article shows how a single brand colour becomes a web palette with clear roles: one colour for text and links, one for surfaces, one for buttons, an accent for lines and highlights, and one for focus. It also covers the WCAG thresholds, a fully calculated example, the places where colour must not be the only signal, and a checklist for your own website.

From logo colour to a readable web paletteFive roles, one contrast value each per WCAG 2.2 – body text threshold 4.5:1Logo colour#17A98DAs text on whiteEnquire now2.96:1 – below 4.5:1As a surface, dark textEnquire now4.81:1 – passes AAOn black: 7.10:1Derived palette with rolesText and links6.46:1#006B5A on whiteButton9.80:1White text on #004D43Light surface8.79:1#004D43 on #E6F6F2Accent2.62:1#ACA316 as text on whiteFocus ring9.80:1#004D43 against white, threshold 3:1Body text threshold 4.5:1Button previewDefaultRequest a dateWith focus ringRequest a date83.9%of home pages withlow-contrast text2025: 79.1%Source: WebAIM Million 2026

The logo is exempt, the text is not

Under WCAG 2.2, text that is part of a logo or brand name has no contrast requirement (W3C, WCAG 2.2). The exemption ends at the edge of the logo. Headings, prices, links and button labels in the brand colour are ordinary text and have to reach the thresholds. So the logo does not need a redesign for the website to become readable.

What 4.5:1 means

The contrast ratio compares the relative brightness of two colours, more precisely their relative luminance.

Luminance is made up of the three colour channels, which WCAG 2.2 weights at 0.2126 for red, 0.7152 for green and 0.0722 for blue after the channel values have been converted to linear light (W3C, WCAG 2.2). The ratio itself is the luminance of the lighter colour plus 0.05, divided by the luminance of the darker colour plus 0.05 (W3C, WCAG 2.2). Green therefore contributes just over 70 percent of luminance and blue just over 7 percent, which is why a strong blue looks dark and a strong yellow looks light, even at the same saturation. The ratio ranges from 1:1 for two identical colours to 21:1 for black on white (W3C, WCAG 2.2). For level AA, WCAG 2.2 requires normal text to reach at least 4.5:1 (W3C, WCAG 2.2); large text needs 3:1 (W3C, WCAG 2.2). Text counts as large from 18 point, or 14 point in bold, which is roughly 24 pixels or 18.5 pixels in CSS (W3C, Understanding WCAG 2.2). For the highest level, AAA, the guidelines require 7:1 for normal text (W3C, WCAG 2.2). Controls and graphics needed to understand the content require at least 3:1 against adjacent colours (W3C, WCAG 2.2). How the choice of typeface affects readability, and which fonts pair well, is explained in Choosing website fonts.

The number is not arbitrary. According to the W3C rationale, 4.5:1 compensates for the loss of contrast sensitivity experienced by people with a visual acuity of about 20/40 (W3C, Understanding WCAG 2.2). The W3C describes this acuity as typical for older people at roughly age 80 (W3C, Understanding WCAG 2.2). Level AAA with 7:1 is designed for a visual acuity of about 20/80 (W3C, Understanding WCAG 2.2). Anyone who thinks of this as a small group underestimates the situation. At the end of 2025, a good 7.8 million people in Germany were living with a severe disability (Federal Statistical Office of Germany), and a good third of them, 34 percent, were aged 75 or older (Federal Statistical Office of Germany). For 4 percent of severely disabled people, blindness or a visual impairment was the most severe disability (Federal Statistical Office of Germany). On top of that come all those who are not registered as severely disabled and still see less well: older customers, people with colour vision deficiency, which according to the US National Eye Institute affects about 1 in 12 men (National Eye Institute), and anyone holding a phone in the midday sun.

Scroll table sideways

ElementMinimum contrast under WCAG 2.2Success criterion
Body text, links, prices, form labels4.5:1 at level AA, 7:1 at level AAA1.4.3 and 1.4.6
Large text from about 24 pixels or 18.5 pixels bold3:1 at level AA, 4.5:1 at level AAA1.4.3 and 1.4.6
Input borders, icons, states such as focus or selection3:1 against adjacent colours1.4.11
Focus indicatorvisible at level AA; at level AAA at least as large as a 2 pixel thick outline and 3:1 between focused and unfocused2.4.7 and 2.4.13
Logo and brand nameno requirementexception in 1.4.3
Disabled controls and pure decorationno requirementexceptions in 1.4.3 and 1.4.11

WCAG 3 and the new contrast formula: a draft, not the benchmark

Anyone looking into contrast soon comes across a second calculation method, the Advanced Perceptual Contrast Algorithm (APCA).

In the First Public Working Draft of WCAG 3, dated 21 January 2021, the rating of text contrast relied on a lookup table from this method (W3C, WCAG 3.0 Working Draft 2021). The new model was meant to reflect perception more closely than a plain luminance ratio; according to the draft, results vary, for example, with text size and with how dark the colours and background are (W3C, WCAG 3.0 Working Draft 2021). The same draft also proposed tests for an upper limit, because very high contrast can impair usability (W3C, WCAG 3.0 Working Draft 2021). None of this has been settled. The current Working Draft of 10 September 2026 states explicitly that the contrast algorithm for WCAG 3 has yet to be determined (W3C, WCAG 3.0 Working Draft 2026), and the text contrast requirement contains a placeholder instead of a threshold (W3C, WCAG 3.0 Working Draft 2026). An APCA value is therefore not a test benchmark but a figure from an earlier draft. It can still serve as a second opinion: if a combination that reaches 4.5:1 scores clearly worse under the newer method, it is worth taking a second look at font size and weight.

WCAG 2 remains the benchmark. The W3C does not expect WCAG 3 to be a completed standard for a few more years (W3C, WCAG 3 Introduction), and WCAG 2 will not be deprecated for several years after WCAG 3 is finalised (W3C, WCAG 3 Introduction). As preparation, the W3C recommends meeting the WCAG 2.2 success criteria now (W3C, WCAG 3 Introduction). Under the German Accessibility Strengthening Act, the route runs through standards: products and services that comply with harmonised standards whose references have been published in the Official Journal of the European Union are presumed to meet the requirements, to the extent the standards cover them (Section 4 BFSG). Until the new harmonised standards for the Act have been announced in the Official Journal, the Bundesfachstelle Barrierefreiheit, Germany’s federal accessibility agency, names the current EN 301 549 and WCAG as the key reference for putting the Act into practice (Bundesfachstelle Barrierefreiheit). Version 4.1.1 of EN 301 549, dated September 2026, has aligned its website requirements with WCAG 2.2 (EN 301 549 version 4.1.1) and requires web pages to satisfy WCAG 2.2 success criterion 1.4.3 (EN 301 549 version 4.1.1). According to its foreword, however, the presumption of conformity only takes effect once it is cited in the Official Journal under the European Accessibility Act (EN 301 549 version 4.1.1). In practice, a brand palette is measured against the WCAG 2 contrast thresholds, 4.5:1 for text and 3:1 for controls, whether the previous or the new version of the standard applies.

From one brand colour to a palette with roles

The way out is not to abandon the brand colour but to think of it in shades.

Hue and saturation stay, and the lightness is adjusted to each use: darker for text, very light for surfaces, unchanged where the colour works as a surface, line or large number. The result is a family of colours that clearly belongs to the brand and stays readable everywhere. It helps to name the palette by role rather than by colour name. Once you have decided which colour carries text, which fills buttons and which shows focus, you no longer choose by gut feeling for the next block, and new pages fit the existing ones.

  1. Text and links: the dark shade of the brand colour that reaches at least 4.5:1 on white. Links in body text also get an underline.
  2. Surface: a very light shade for bands, cards and notice boxes. Dark text sits on top, and that combination is measured too.
  3. Button: a dark, saturated shade as the button surface with white text, or a light shade with dark text. What you measure is the label against the button surface.
  4. Accent: the logo colour itself or a second colour for lines, icons, surfaces and large numbers, in other words wherever it does not have to be read as small text.
  5. Focus: a colour for the outline around the element that currently has focus, standing out from both the page background and the element itself.
  6. States: shades for hover, pressed, selected and error, each with its own measurement.

A fully calculated example shows how large the differences are. Suppose a business uses the logo green #17A98D. All ratios in the table are calculated with the WCAG formula and can be reproduced with any contrast checker. For the logo green, the formula gives a relative luminance of about 0.305, almost entirely from the green channel; white has a luminance of 1, black 0. Against white you therefore calculate 1.05 divided by 0.355 and get 2.96:1; against black, 0.355 divided by 0.05 gives 7.10:1. Two things stand out. First, as text on white the logo green is not even enough for large headings, which need 3:1, while on black it even reaches level AAA. A colour is therefore not good or bad, it suits certain backgrounds. Second, a button in logo green with a white label fails, while a dark label in #00312B passes. If you want to keep the logo colour for buttons, change the text colour, not the brand. If you want a white label, use a darker shade of the same colour for the button surface.

Scroll table sideways

RoleCombinationRatioAssessment
Logo colour as text#17A98D on white2.96:1fails for body text and for large text
Logo colour as surfaceText #00312B on #17A98D4.81:1passes AA for body text
Text and links#006B5A on white6.46:1passes AA
ButtonWhite on #004D439.80:1passes AA and AAA
Light surface#004D43 on #E6F6F28.79:1passes AA and AAA
Gold accent as text#ACA316 on white2.62:1too weak for text and controls, decorative surface only
Focus ring#004D43 against white9.80:1well above 3:1
  • Default: label against button surface at least 4.5:1
  • Hover: the surface may get lighter or darker, but the label stays above 4.5:1
  • Focus: a visible outline with a little space around the button that stands out from the background
  • Pressed and selected: a cue in addition to colour, such as a tick, an underline or bold text
  • Disabled: exempt from the contrast requirement, but with a hint explaining why the button does not respond
  • Error: a red border plus a text that names the error

Focus is lost particularly often. 67 percent of sites explicitly remove the browser’s default focus outline in CSS (HTTP Archive Web Almanac 2025). If the site does not replace it with a focus style of its own, people who navigate by keyboard lose the indicator of where they are on the page. At level AA, WCAG requires focus to be visible (W3C, WCAG 2.2); whatever makes a state such as focus recognisable needs at least 3:1 against adjacent colours (W3C, Understanding WCAG 2.2). In the example, a gold focus ring in #ACA316 fails with 2.62:1 on white, while an outline in the dark brand shade #004D43 reaches 9.80:1. Level AAA provides a good benchmark: a focus indicator at least as large as a 2 pixel thick outline around the element, with 3:1 between the focused and unfocused state (W3C, WCAG 2.2). How to keep state changes with motion calm is covered in the article on website animations.

The example worked through: every role, both modes

The table below works the example through for every role: in light mode with a white page background, body text in #1F2328 and a tinted band in #E6F6F2, and in dark mode with a page background of #0D0D10 and a card surface of #16181C.

Three findings carry over to many brand palettes. First, a link can pass against the background and fail against the body text: #006B5A reaches 6.46:1 on white but only 2.45:1 against the near-black body text. That would leave hue as the only cue, which is not enough under success criterion 1.4.1; only a lightness difference of at least 3:1 to the surrounding text counts as an additional distinction (W3C, Understanding WCAG 2.2). So the underline stays. Second, the button switches shade in dark mode. The button surface #004D43, clearly set apart on white at 9.80:1, would reach only 1.81:1 on the dark card and would hardly be recognisable as a surface; in dark mode, the light shade #4EC3AC therefore takes over the surface and the label turns dark. Third, an accent that fails as text does not have to disappear. As text on white, the gold #ACA316 reaches only 2.62:1. With the same hue and saturation but lower lightness it becomes #766F0F at 5.18:1, and on a dark background the original gold passes at 6.77:1 without any change. Error messages repeat the pattern in red: #991B1B passes on white at 8.31:1 but reaches only 2.14:1 on the dark card, which needs a much lighter red, at 6.38:1 in the code below. How form errors can also be recognised as text is explained in Getting contact forms right. The CSS version below the table captures the palette in both modes.

Scroll table sideways

RoleLight modeDark modeThreshold under WCAG 2.2
Body text#1F2328 on white: 15.80:1#E6F6F2 on #16181C: 15.94:14.5:1
Link in body text#006B5A on white: 6.46:1#4EC3AC on #16181C: 8.23:14.5:1
Link against body text#006B5A against #1F2328: 2.45:1#4EC3AC against #E6F6F2: 1.94:13:1, otherwise underline
Link on a second background#006B5A on band #E6F6F2: 5.79:1#4EC3AC on page background #0D0D10: 8.99:14.5:1
Button labelWhite on #004D43: 9.80:1#00312B on #4EC3AC: 6.60:14.5:1
Button on hoverWhite on #006B5A: 6.46:1#00312B on #17A98D: 4.81:14.5:1
Button surface against background#004D43 against white: 9.80:1#4EC3AC against #16181C: 8.23:1; #004D43 only 1.81:13:1 where the surface identifies the button
Focus ring#004D43 against white: 9.80:1#4EC3AC against #16181C: 8.23:13:1
Error message#991B1B on white: 8.31:1light red on #16181C: 6.38:1; #991B1B only 2.14:14.5:1
Gold as text#ACA316: 2.62:1; darkened #766F0F: 5.18:1#ACA316 on #16181C: 6.77:14.5:1
palette.css
/* Palette by role, not by colour name */
:root {
  --color-bg:           #ffffff;
  --color-body:         #1f2328; /* body text: 15.80:1 on white */
  --color-brand:        #17a98d; /* logo colour: surface, line, large number only */
  --color-text:         #006b5a; /* links: 6.46:1 on white */
  --color-button:       #004d43; /* white text on top: 9.80:1 */
  --color-button-hover: #006b5a; /* white text on top: 6.46:1 */
  --color-on-button:    #ffffff;
  --color-surface:      #e6f6f2; /* #004d43 on top: 8.79:1 */
  --color-accent:       #aca316; /* surface only; as text #766f0f (5.18:1) */
  --color-error:        #991b1b; /* 8.31:1 on white */
  --color-focus:        #004d43; /* 9.80:1 against white */
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg:           #0d0d10;
    --color-surface:      #16181c; /* cards and bands */
    --color-body:         #e6f6f2; /* 15.94:1 on #16181c */
    --color-text:         #4ec3ac; /* 8.23:1 on #16181c */
    --color-button:       #4ec3ac; /* surface turns light, text dark */
    --color-button-hover: #17a98d; /* #00312b on top: 4.81:1 */
    --color-on-button:    #00312b; /* 6.60:1 on #4ec3ac */
    --color-error:        #f97066; /* 6.38:1 on #16181c */
    --color-focus:        #4ec3ac; /* 8.23:1 against #16181c */
  }
}

body { background: var(--color-bg); color: var(--color-body); } /* text and background as a pair */
a { color: var(--color-text); text-decoration: underline; text-underline-offset: 0.15em; }

.button { background: var(--color-button); color: var(--color-on-button); }
.button:hover { background: var(--color-button-hover); }

:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }

Where colour must not be the only signal

The rule from the section on links applies far beyond links.

Under success criterion 1.4.1, colour must not be the only visual means of conveying information, indicating an action, prompting a response or distinguishing an element (W3C, WCAG 2.2). The main reason is colour vision deficiency: the most common type makes it hard to tell red from green (National Eye Institute). A required field marked in red next to a green one, a green dot for “available” and a red one for “fully booked” look the same to some of your customers. On top of that, colour differences blur in greyscale printouts, on dim displays and in bright sunlight. The fix is usually the same: keep the colour and add a second cue, such as text, an icon, a pattern or a shape. How to word error messages and link texts so they make sense without colour is explained in Accessible writing: clear website copy.

Error messages

A red border alone does not say what is wrong. The sentence “Please enter a phone number” below the field does, even without colour.

Required fields

An asterisk with an explanation at the start of the form, or the word “required” in the label, rather than a red label alone.

Links in body text

Keep the underline. A link that is only coloured disappears into the surrounding text for people with colour vision deficiency.

Status and availability

“Available”, “Few places left” or “Fully booked” as a word next to the coloured dot, so availability can be read in greyscale too.

Charts

Lines labelled directly at their end, bars with values, patterns or shapes instead of a pure colour difference between series.

Active menu item

An underline, bold text or a marker at the side shows where you are, not just a different colour.

Three points decide whether a dark mode stays readable. First, text and background colours are set as a pair: according to the W3C, specifying a text colour without a background colour is a failure, because the user’s default background colour is unknown and cannot be evaluated for sufficient contrast (W3C, WCAG 2.2). This is exactly the gap that opens when a page lightens only the text for dark mode and leaves the background to the browser. Second, WCAG 2.2 sets no upper limit: pure white on #0D0D10 reaches 19.41:1 and is permitted. If you find it too harsh, set body text in a slightly muted light tone such as #E6F6F2, which at 17.40:1 is still far above any threshold. Third, testing tools in the browser usually measure only the presentation that is currently active. Before measuring, switch dark mode on in the system or emulate it in the browser’s developer tools, then measure every role again, including the focus ring. This also reveals something no contrast rule covers: a logo with dark lettering on a transparent background disappears on a dark background, even though it is exempt from the contrast requirement. Which logo files a website needs for this is explained in Logo for your website.

Light grey helper text

Light grey text looks elegant and is a common trap for small print such as price details, deadlines and notes. A grey such as #999999 reaches only 2.85:1 on white, while the slightly darker #767676 reaches 4.54:1. Placeholder text in form fields is usually just as light; it does not replace a visible label, and according to the W3C the text contrast requirement applies to it as well.

How to check your colour combinations

  • Note every colour on the website with its hex value: text, links, buttons, surfaces, borders and icons
  • Measure every text colour against every background it actually appears on, including tinted bands and cards
  • Also measure links against the surrounding body text: below 3:1, the underline is required
  • For every combination below 4.5:1, decide: make it darker, use it for large text only, or use it as a surface only
  • Tab through the page with the keyboard and check that focus is visible at every point
  • View the page in greyscale: whatever can no longer be told apart depends on colour alone
  • Check dark mode separately: switch it on or emulate it in the browser first, then measure every role again, including the focus ring and logo
  • Measure text on images and gradients at the lightest and at the darkest point
  • Record the result as a colour table with roles so that new pages use the same combinations

Legally, contrast is more than a recommendation for many businesses. The German Accessibility Strengthening Act (BFSG) applies, among other things, to e-commerce services provided to consumers after 28 June 2025 (Section 1(3) no. 5 BFSG). Microenterprises that offer or provide services are exempt from the accessibility requirements (Section 3(3) BFSG). Whether that applies to you is covered in the article on the BFSG microenterprise exemption; what the law means for websites overall is set out in the BFSG overview for businesses. As described in the section on WCAG 3, the technical benchmark is EN 301 549 together with the contrast criteria of WCAG 2. Whatever the legal position, a text that some of your customers cannot read works like a text that is missing. A contrast check does not have to be a project; for a small business website, the list above is often enough.

The brand stays, the shade changes

A brand colour does not need the same lightness on every surface. As a palette with roles, dark for text, light for surfaces, strong for accents and clearly visible for focus, it stays recognisable and becomes readable everywhere. Measure every combination that actually appears on the page, in light mode as well as in dark mode.
This article is based on data from: WebAIM Million 2026 (home pages of the top one million websites, data from February 2026), HTTP Archive Web Almanac 2025 (Accessibility chapter), W3C Web Content Accessibility Guidelines (WCAG) 2.2 and Understanding WCAG 2.2, W3C Accessibility Guidelines (WCAG) 3.0 (Working Drafts of 21 January 2021 and 10 September 2026) and the W3C introduction to WCAG 3, Federal Statistical Office of Germany (press release no. 246 of 13 July 2026), National Eye Institute (Color Blindness), the German Accessibility Strengthening Act (Sections 1, 3 and 4) as published on gesetze-im-internet.de, Bundesfachstelle Barrierefreiheit (standards for the BFSG), EN 301 549 version 4.1.1 (September 2026), the XICflow documentation (Brand and design; Publishing and domains) and the XICflow features page, retrieved in October and November 2026. The contrast ratios of the sample palette are calculated with the WCAG 2.2 formula.