UX Robot guide

High contrast color palettes: 8 that pass WCAG

Eight high contrast color palettes with every pair measured against WCAG, plus how to build an accessible color palette from your own brand colors.

By the UX Robot teamUpdated 15 minute read

Most color palettes are chosen for how they look side by side in a mood board, not for whether a word set in one color can be read on another. That is why so many pretty palettes fail the moment they meet a real web page. High contrast color palettes start from the other end: every text color is paired with the backgrounds it is allowed on, and every pair is measured.

This guide gives you eight palettes you can copy, light and dark, with the contrast ratio of every pair measured against the Web Content Accessibility Guidelines (WCAG). It then shows how to turn your own brand colors into an accessible color palette, using a real brand green from a UX Robot audit that measured 2.84:1 and how a darker shade of the same green fixes it.

In short

  • A palette is high contrast when its text colors measure at least 4.5:1 against the backgrounds they sit on, and its borders, icons and focus outlines at least 3:1.
  • Contrast depends on lightness, not hue. Bright yellows, oranges, light greens and sky blues are light, so they need dark text, never white.
  • Pick the text color first, then the background. Give each brand color a bright shade for shapes and a darker shade for words.
  • Low contrast text was found on 83.9% of the top million home pages in February 2026, so a palette that passes puts you ahead of most of the web.
  • Write the approved pairs into your design system, and respect the high contrast settings people turn on in their own devices.

What makes a color palette high contrast?

A color palette is high contrast when every pair you actually use for reading passes WCAG: at least 4.5:1 for normal text, 3:1 for large text, and 3:1 for the edges of buttons, fields, icons and focus outlines. For long reading, 7:1 for normal text meets the stricter AAA level.

The contrast ratio compares the lightness of two colors. The W3C defines it as (L1 + 0.05) / (L2 + 0.05), where L1 is the relative luminance of the lighter color and L2 of the darker one, and notes that “contrast ratios can range from 1 to 21 (commonly written 1:1 to 21:1).” Relative luminance weighs green far more than red, and red far more than blue, because that is how our eyes see brightness. So a pure blue looks strong and is quite dark, while a yellow that feels just as strong is almost as light as white.

Two things follow from that. First, a palette is never high contrast on its own: a navy can be perfect on white and useless on black. What passes or fails is a pair. Second, hue does not help. Red and green look completely different, yet can sit at nearly the same lightness, which is why a palette needs a clear split between dark colors and light colors before it needs a variety of hues.

These are the targets, taken from the W3C’s explanations of minimum contrast, enhanced contrast and non-text contrast. Large text means at least 18 point, or 14 point bold, which on a web page is about 24 pixels, or about 18.5 pixels bold.

Where a pair lands on the contrast scale
  • Normal textBody copy, labels, links
  • Large textAbout 24 px, or 18.5 px bold
  • Interface partsBorders, icons, focus outlines
Red fails, amber meets level AA and green meets level AAA as well. Interface parts have only the AA target. The thresholds are WCAG 2.2’s; the scale runs from 1:1 to 21:1.

Eight high contrast color palettes with every pair measured

Each palette below has a background, a text color, a button, a link color and a quieter color for secondary text. Every pair you would use for reading passes WCAG level AA, and the text color passes AAA. The ratios were calculated with the WCAG formula, so you can copy the color codes as they are.

Most palette sites show colors in stripes and leave you to find out later which ones can carry words. Here every color has a job. The sample card in each row uses the palette the way a web page would: a headline, a short note, an underlined link and a button.

Four light high contrast color palettes 1. Ink and paper: text 16.52:1, button 6.70:1, link 6.70:1, quiet text 7.58:1; 2. Forest and cream: text 12.62:1, button 6.44:1, link 6.08:1, quiet text 7.21:1; 3. Berry: text 15.66:1, button 7.88:1, link 7.38:1, quiet text 7.00:1; 4. Ocean: text 13.02:1, button 5.93:1, link 5.57:1, quiet text 7.11:1 PaletteOn the pageMeasured 1. Ink and paper Navy on white Find a table tonight Open until 10 pm See the menu Book a table Text 16.52:1 Button 6.70:1 Link 6.70:1 Quiet text 7.58:1 2. Forest and cream Green on cream Find a table tonight Open until 10 pm See the menu Book a table Text 12.62:1 Button 6.44:1 Link 6.08:1 Quiet text 7.21:1 3. Berry Plum on blush Find a table tonight Open until 10 pm See the menu Book a table Text 15.66:1 Button 7.88:1 Link 7.38:1 Quiet text 7.00:1 4. Ocean Deep blue on ice Find a table tonight Open until 10 pm See the menu Book a table Text 13.02:1 Button 5.93:1 Link 5.57:1 Quiet text 7.11:1
Every ratio calculated with the WCAG formula. Text is the headline color on the background, button is the label on the button, link is the underlined link on the background and quiet text is the secondary text on the background.

1. Ink and paper

Navy #0B1F3A on white #FFFFFF measures 16.52:1, a calmer alternative to black that still sits far above the AAA line. The blue #1D4ED8 works both as a link on white and as a button fill behind white text, at 6.70:1 either way. The slate #475569 for dates, captions and notes measures 7.58:1, so even the quiet text passes AAA. If you need a warm accent for a sale badge or a highlight, the amber #B45309 reaches 5.02:1 on white. This is the safest palette for a business website, a booking flow or documentation.

2. Forest and cream

A deep green #14352A on a cream #FDF8EE gives 12.62:1 and a softer feel than pure white, which suits food, travel and wellbeing brands. The button green #1F6B4A measures 6.44:1 with white text, and 6.08:1 as a link on cream. A rust #9A3412 at 6.90:1 adds warmth for prices or offers, and the warm gray #57534E for secondary text reaches 7.21:1. Note that the cream lowers every ratio a little compared with white, so recheck any color you add.

3. Berry

A plum #3B0A24 on a blush #FFF5F7 measures 15.66:1. The berry #9D174D is the strongest button color in this set, at 7.88:1 with white text, and works as a link at 7.38:1. A violet #6D28D9 makes a second accent at 6.65:1, and the muted mauve #6B4C5A for secondary text sits exactly on the AAA line at 7.00:1. It shows that a palette can be playful and still pass everything.

4. Ocean

Deep blue #082F49 on an icy #F0F9FF measures 13.02:1. The mid blue #0369A1 carries white button text at 5.93:1 and works as a link at 5.57:1, comfortably above AA though below AAA, so keep it for links and buttons rather than paragraphs. A teal #0F766E gives a second accent at 5.13:1. This is the palette where people most often go wrong by reaching for a brighter sky blue: the sky blue #0EA5E9 measures only 2.77:1 on white.

Two dark, one bold and one neutral palette 5. Midnight: text 17.06:1, button 10.69:1, link 10.71:1, quiet text 12.02:1; 6. Charcoal and coral: text 16.74:1, button 6.50:1, link 10.37:1, quiet text 11.74:1; 7. Black and yellow: text 13.38:1, button 13.38:1, link 13.38:1, quiet text 8.25:1; 8. Grayscale: text 18.88:1, button 18.88:1, link 7.00:1, quiet text 4.54:1 PaletteOn the pageMeasured 5. Midnight Dark mode, amber Find a table tonight Open until 10 pm See the menu Book a table Text 17.06:1 Button 10.69:1 Link 10.71:1 Quiet text 12.02:1 6. Charcoal and coral Dark mode, warm Find a table tonight Open until 10 pm See the menu Book a table Text 16.74:1 Button 6.50:1 Link 10.37:1 Quiet text 11.74:1 7. Black and yellow Loudest pairing Find a table tonight Open until 10 pm See the menu Book a table Text 13.38:1 Button 13.38:1 Link 13.38:1 Quiet text 8.25:1 8. Grayscale Neutral base Find a table tonight Open until 10 pm See the menu Book a table Text 18.88:1 Button 18.88:1 Link 7.00:1 Quiet text 4.54:1
Midnight and Charcoal and coral are dark modes, so their bright buttons take dark labels. Black and yellow uses one pair for text and buttons. Grayscale shows the lightest grays that still pass.

5. Midnight

For a dark mode, the slate #0F172A with an off-white #F8FAFC measures 17.06:1. The amber button #FBBF24 takes dark text, not white: the slate on amber measures 10.69:1, while white on the same amber would be only 1.67:1. A light sky blue #7DD3FC makes links that stand out at 10.71:1, and the soft gray #CBD5E1 for secondary text gives 12.02:1. Borders need care on dark backgrounds too: #64748B on the slate measures 3.75:1, enough for a field outline.

6. Charcoal and coral

A warm charcoal #1C1917 with #FAFAF9 text measures 16.74:1. The coral #FB7185 is lovely on a dark page and passes at 6.50:1 with charcoal text on it, but white on that coral is only 2.69:1, so the label stays dark. A peach #FDBA74 for links measures 10.37:1, and #D6D3D1 for quieter text 11.74:1. This palette suits brands that want warmth in dark mode without the coldness of blue grays.

7. Black and yellow

The loudest pairing that still reads well: near-black #111111 on a yellow #FFD60A measures 13.38:1, and the same pair flips for a button, yellow text on a near-black fill, at the same ratio. A dark olive #3D3A00 for small print reaches 8.25:1. The trap is white. White on that yellow measures 1.41:1, close to invisible. Use this palette for banners, sale pages and campaigns where you want attention, and keep it off long pages, where it is tiring to read.

8. Grayscale

Every palette needs neutrals, and grays are where most low contrast text comes from. On white, #111111 measures 18.88:1 for text, #595959 gives exactly 7.00:1 for secondary text at AAA, and #767676 at 4.54:1 is about the lightest gray that still passes for normal text. Below that, a gray is for borders and dividers only: #8A8A8A at 3.45:1 is a good field border. Anything lighter, such as #949494 at 3.03:1, is for large text or decoration at most.

Copy the color codes
PaletteBackgroundTextButton and labelLinkQuiet text
Ink and paper#FFFFFF#0B1F3A#1D4ED8 with #FFFFFF#1D4ED8#475569
Forest and cream#FDF8EE#14352A#1F6B4A with #FFFFFF#1F6B4A#57534E
Berry#FFF5F7#3B0A24#9D174D with #FFFFFF#9D174D#6B4C5A
Ocean#F0F9FF#082F49#0369A1 with #FFFFFF#0369A1#475569
Midnight#0F172A#F8FAFC#FBBF24 with #0F172A#7DD3FC#CBD5E1
Charcoal and coral#1C1917#FAFAF9#FB7185 with #1C1917#FDBA74#D6D3D1
Black and yellow#FFD60A#111111#111111 with #FFD60A#111111, underlined#3D3A00
Grayscale#FFFFFF#111111#111111 with #FFFFFF#595959, underlined#767676

One more pair to check in any palette is a link against the text around it. When the link color and the body text are both dark, as in Ink and paper, where the blue and the navy measure only 2.46:1 against each other, the difference is too small to rely on. The W3C’s use of color rule asks that color is not the only way to tell things apart, so underline links in text, as the sample cards do.

A real brand color that failed, and the shade that fixed it

In a UX Robot audit of the Happy Menu home page on a phone in October 2026, the brand green #00AF74 measured 2.84:1 on white, below the 4.5:1 that small text needs. A darker shade of the same green, #007A50, measures 5.39:1 and keeps the brand recognizable.

Happy Menu’s green is a good brand color. It is fresh, it suits food, and on the logo it has no contrast requirement at all, since the W3C says plainly that “text that is part of a logo or brand name has no contrast requirement.” The trouble started when the same green spread to places that do: the small eyebrow label above the headline, the main Get Listed Free button with white text, the menu icon and the chat button. The audit marked each of them.

Brand green on whiteMeasured
Happy Menu’s home page on a phone with the green eyebrow label, the green Get Listed Free button, the green menu icon and the green chat button marked with red boxes
The green label, the white text on the green button and the green menu and chat icons all measured 2.84:1 in UX Robot’s audit, October 2026.

The fix does not need a new brand. It needs the green to be split into roles, which is exactly how the eight palettes above are built:

One brand green, three roles
PairRatioUse it for
Bright green #00AF74 on white2.84:1The logo, illustrations and large shapes. Not text, icons or button labels.
White on bright green #00AF742.84:1Nothing that needs reading. It fails even for large bold text, which needs 3:1.
Dark ink #0B1020 on bright green #00AF746.66:1A button that keeps the bright green, with a dark label.
Dark green #007A50 on white5.39:1Small text in the brand color: labels, links, step numbers.
White on dark green #007A505.39:1A button with a white label.

We hold our own design system to the same rule. UX Robot’s agent blue #3E4CF6 measures 5.88:1 on white and its violet #7C3AED 5.70:1, so both can carry links and button labels. Our sky blue #0EA5E9 measures 2.77:1, so it only ever appears in gradients and soft glows, never as the color of words people need to read.

Findings like Happy Menu’s are what a UX Robot page audit looks for. Your own AI agent checks the page for usability and WCAG 2.2, measures contrast on the screen as people see it, marks each problem on a screenshot and writes the fix, and says whether each finding was measured or judged. The free plan covers five page audits a month, Pro removes the limit, and Enterprise audits whole journeys with your analytics, Search Console and Clarity data, sends issues to your tracker and rechecks them after you ship. See the plans.

How to build an accessible color palette from your brand colors

Start with the text color, make a ladder of light to dark shades for each brand color, decide which shades may carry words, measure every pair you plan to use, and write the passing pairs down. That turns a set of colors into a WCAG color palette people can use without guessing.

  1. Choose your text color firstPick the color for body text, usually a near black or a very dark brand shade, and the main background. Aim for 7:1 or more between them.
  2. Make a ladder for each brand colorCreate eight to ten shades of each color from very light to very dark, keeping the hue and changing only the lightness.
  3. Mark where each shade may goOn a light background, only the darker steps may carry words; the lighter steps are for fills, tints and shapes.
  4. Measure every pair you will useText on each background, button labels on each button color, links on each background and against body text, borders and focus outlines against what is next to them.
  5. Fix the failures by shade, not by hueMove a failing color one or two steps darker, or swap its text to dark. Changing the hue rarely helps.
  6. Check every state and the dark modeHover, pressed, visited, disabled, error and success colors, and every pair again on dark backgrounds.
  7. Write the pairs into your design systemName colors by job, such as text, text quiet, link and border, and list each approved pair with its ratio.

The ladder is where most of the work happens. Light colors such as yellow and lime need to go very dark before they can carry text on white, while blues and purples pass at mid shades. That is why a palette tool that shows only one shade per color is not enough: you need to see the whole ladder to find the first step that passes.

For a single pair, WebAIM’s contrast checker shows which levels it passes. Chrome’s developer tools show the ratio for any text on a live page in the color picker, and Google’s guide to making your website more readable explains how to find every low contrast element at once.

Why a passing palette puts you ahead of most websites

Low contrast text is the most common accessibility failure on the web. WebAIM found it on 83.9% of the top million home pages in February 2026, with 34 separate instances on the average home page. Most of it comes from a palette that was never measured.

83.9% Of the top million home pages had text below the WCAG AA contrast thresholds (WebAIM, February 2026).
34 Distinct pieces of low contrast text on the average home page, up 15% from 2025 (WebAIM, 2026).
79.1% The share a year earlier, in 2025. Low contrast text became more common, not less (WebAIM).

In WebAIM’s words, low contrast text “was found on 83.9% of home pages, an increase from 79.1% in 2025.” The W3C explains who the 4.5:1 minimum is for: it “compensated for the loss in contrast sensitivity usually experienced by users with vision loss equivalent to approximately 20/40 vision.” That is a lot of people, before you count anyone reading a phone outdoors, on a dim screen or at the end of a long day.

For the business, the point is simple. The text people cannot read is often the text you most want them to read: the price, the button label, the delivery note, the error message. A palette that passes from the start means every new page inherits readable pairs instead of repeating the same mistake. Our guide to bad color contrast examples shows nine of the most common failures in detail, and the ADA compliance checklist puts contrast in context with the other checks.

High contrast palettes and high contrast mode are different things

Your palette is what everyone sees by default. High contrast mode is a setting people turn on in their own device, which can replace your colors with theirs. A good website does both: it ships a palette that passes, and it still works when someone overrides it.

Browsers tell your page about these settings through two CSS media features. prefers-contrast reports whether someone has asked for more or less contrast, so you can, for example, darken your quiet gray or thicken borders when it says more. forced-colors reports when the device is enforcing “a user-chosen limited color palette on the page,” and MDN gives Windows High Contrast mode as the example.

In forced colors mode, your background colors, gradients and shadows can disappear. Things that were drawn only with a background color, such as a button with no border or a selected tab shown by a colored fill, can vanish with them. A few habits keep a page working:

  • Give buttons and fields a real border, even a transparent one, so the device has an edge to draw.
  • Show the selected or current state with something other than a fill, such as an underline, a check or a bolder weight.
  • Use real text, not text in images, so it takes the reader’s colors.
  • Keep focus outlines as outlines rather than shadows.
  • Do not build a separate design for these modes. MDN advises that web authors “should not be using the forced-colors media feature to create a separate design”; use it to fix the few things that break.

A checklist for any high contrast color palette

Run through this before a palette goes into your design system, and again whenever someone adds a color.

Text pairs

  • Body text measures at least 4.5:1 on every background it appears on, ideally 7:1.
  • Quiet text for dates, captions and notes measures at least 4.5:1, not just the headline color.
  • Large headings measure at least 3:1.
  • Links measure 4.5:1 on the background and are underlined in text.

Buttons and states

  • Every button color has one approved label color, measured.
  • Bright button colors take dark labels.
  • Hover, pressed and visited colors pass as well as the default.
  • Error, warning and success colors pass as text, and come with a word or icon.

Interface parts

  • Field borders, checkboxes and toggles measure at least 3:1 against the page.
  • The focus outline color measures at least 3:1 on every background.
  • Icon-only buttons measure at least 3:1.
  • Chart colors measure 3:1 against the background and have labels.

The system around it

  • Colors are named by job, with the approved pairs written down.
  • Each brand color has a bright shade for shapes and a darker shade for words.
  • The dark mode has its own measured pairs.
  • The page still works with high contrast settings turned on.

Contrast is one check among many. Our guide on how to do a UX audit shows where it fits in a full review of a page or journey.

Questions people ask about high contrast palettes

What colors have the highest contrast?

Black and white, at 21:1, the top of the scale. After that, any very dark color with any very light one: navy, deep green or plum on white or cream, and white or pale yellow on near black. Black on a bright yellow such as #FFD60A measures 14.88:1.

Is black on white too much contrast?

WCAG sets a minimum, not a maximum, so pure black on pure white passes everything. Many designers still prefer a near black such as #111111 or a dark navy for body text, which keeps a very high ratio and looks a little softer.

What is a WCAG color palette?

A palette where every pair used for reading has been measured and passes WCAG: 4.5:1 for normal text and 3:1 for large text and interface parts at level AA, or 7:1 and 4.5:1 for text at level AAA. WCAG does not approve palettes; it sets the ratios your pairs must meet.

Which colors are hardest to make accessible?

Very light colors: yellows, oranges, limes, light greens and sky blues. They almost never pass with white text, so give them dark labels, or use a much darker shade of the same hue wherever they carry words.

Are high contrast palettes good for color blindness?

They help, because a strong difference in lightness survives when hues are hard to tell apart. They are not enough on their own: never use color as the only way to show a state, such as red for errors and green for success. Add a word or an icon.

Do logos have to meet contrast ratios?

No. The W3C exempts text that is part of a logo or brand name. The ratios apply when your logo’s colors are reused for text, links, buttons and icons.

Sources

  1. The WebAIM Million, WebAIM, 2026: low contrast text on the top million home pages, tested in February 2026.
  2. Web Content Accessibility Guidelines 2.2: contrast ratio and relative luminance, W3C.
  3. Understanding Success Criterion 1.4.3: Contrast (Minimum), W3C.
  4. Understanding Success Criterion 1.4.6: Contrast (Enhanced), W3C.
  5. Understanding Success Criterion 1.4.11: Non-text Contrast, W3C.
  6. Understanding Success Criterion 1.4.1: Use of Color, W3C.
  7. prefers-contrast and forced-colors, MDN Web Docs.
  8. Contrast checker, WebAIM.
  9. Make your website more readable, Chrome for Developers.
  10. UX Robot audit of happymenu.co on a phone, October 2026, published with the owner’s permission. All palette ratios calculated with the WCAG formula in November 2026.

Put this guide to work

Check your own page in about a minute.

Type your page’s address and UX Robot shows how fast it is for real visitors, how accessible it is and what search engines see, free and without signing up.

Then your own AI agent can audit the whole page for usability and WCAG 2.2, five pages a month on the free plan. See the plans

How does your page do?

Check it free