How to Choose Accessible Colors for Your Website

A color wheel visual with segments displaying a gradient range of colors from green to red, transitioning through blue and purple hues. The center is grey, surrounded by lighter shades.

Color is a big deal; it communicates personality, tone, and overall business branding. But it’s more than that: Color selection can also greatly impact website accessibility for disabled site visitors.

It’s all about readability. Poorly-selected colors can make text all across your site hard to read. Because content is at the core of any marketing strategy, hard-to-see content is a major problem to avoid.

The contrast between the colors on your website is what counts, specifically in the text like you’re reading now.

Need colors for your website and want to pick the right ones? Read on. In this post, we will cover tools for color selection, and, importantly, describe how to test if you’ve chosen an accessible, ADA-compliant palette.

What’s in a Color Palette?

A color palette consists of several colors that you’ll use repeatedly across your website. There are no “right” or “wrong” colors; it’s an artist’s decision, or a business owner’s call. As we will see later, it is the relationship between the chosen colors that matters.

Google’s color picker shows us that colors can be expressed in many ways:

A color spectrum slider set to a yellow-orange shade with the HEX code #fcba03 and corresponding RGB, CMYK, HSV, and HSL values below.

The most common representation of color on the Web is the hexadecimal code, or “hex code,” which is comprised of six symbols, like this:

A Venn diagram of colored circles against a black background, displaying red (#FF0000), green (#00FF00), and blue (#0000FF) with overlaps producing yellow (#FFFF00), cyan (#00FFFF), magenta (#FF00FF), and white (#FFFFFF).

Each symbol is either a 0-9 or a letter, a-f.

A pure white is #ffffff. A regular ol’ blue is #0000ff. Meanwhile, the endless shades in between leads to more complicated-looking combinations, like #fcba03.

Now, just how many of these do we need?

The Colors You Want

A website demands more than just a single color. As a guideline, we want the following:

  1. Primary color – Usually taken from your branding and logo, this color will be used frequently on the website, be it on buttons, links, borders, and more.
  2. Secondary color – A second color that complements the primary color. Useful for alternate buttons, hover states on links, and solid background sections, it could also be taken from your logo. Either this color or the tertiary color should offer significant contrast from the primary color. Perhaps a warm (red/orange/yellow) primary is offset with a cool (blue/green/turquoise) selection.
  3. Tertiary (“accent” or “trim”) color – Used less frequently, this color can be mixed into any of the aforementioned places to add variety.
  4. Light color – Often a gray like #eeeeee, this can also be a light, reduced-saturation version of your primary or secondary color. It will be used to create sections, or blocks of content, that will also work with the dark body text on top
A color wheel divided into ten segments labeled: blue, blue-purple, purple, red-purple, red, red-orange, orange, yellow-orange, yellow, yellow-green, green, and blue-green.
Consider complementary colors, or those across the wheel, for a secondary or tertiary color

The All-Important Body Text

The last color happens to be the most crucial for accessibility and compliance. It’s the body text color. The color of the very text you are reading at this moment.

“That’s just black!” you might respond.

Wrong. (Sometimes.)

Recall our hex codes. Black is #000000. Six zeroes. Pure nothingness.

A gradient of grey squares transitioning from black to various shades of grey. Each square has a hexadecimal color code below it: #000000, #191919, #333333, #4d4d4d, and #666666.

Some websites – many websites – do use actual black for text. It works! It provides strong contrast! But it’s also plain, and, arguably, hard on the eyes for extended reading.

The truth is that text can be readable – or legible enough, with suitable contrast depending on the background – in many dark shades.

And it happens that a touch of color in the body text, even subtle color in the near-blackness, can convey an extra stretch of personality and differentiation your brand desires, all while being softer on the eyes.

A vast majority of websites use a dark-on-white scheme: That is, near-black text on top of a light-ish background. You could also go the other way, picking a dark color background for your website with light text on top of that.

The one requirement is that the chosen text color provides enough contrast with the chosen background color. That’s it. Beyond this rule, it’s all creativity.

For starters, we recommend a near-black color on white. Some highly usable hex code options for near-black-but-not-pure-black-and-with-a-touch-of-color include:

  • #0d160b is a near-black with the slightest touch of green, a high-contrast choice
  • #414042 is on the lighter side, more a “dark gray” than black, plus a tinge of purple
  • #0c323c is another “dark gray,” this one with a dash of blue
A color picker tool showing a dark teal color with the HEX code #0c323c selected.

Color Palette Generation Tools

There are many free tools that can help you find color inspiration. Our top recommendation is Coolors, for its simplicity and presentation.

Once on the Coolors website, locate the color generator. If you see five colors filling your screen, you are in the right place. A press of the spacebar swaps out the colors with an all-new set.

A color palette with five swatches labeled (from left to right): #141115 Obsidian, #9F2042 Big Dip O'ruby, #EAE0D5 Almond, #C6AC8F Kid's Wits, #C17989 Big Yangosho.

When you find a color you like, lock it, then generate more colors to go along with that.

If Coolors doesn’t help, other great tools include:

  1. Adobe Color (, which includes different color wheel setups and built-in accessibility tools to check contrast. A powerful tool that only loses points due to its more complex nature.
  2. Colormind (, where a fresh AI-generated palette can be generated with a click. Easy-to-use inspiration!

The other way to pick colors, of course, is to hire a talented design team like PaperStreet. We’d love to personalize your branding for you.

Contrast is Key for ADA Compliance

Now that we have colors, it’s time to ensure they have enough contrast. To do this, we recommend a tool like “Accessible Colors” ( or the WebAIM Contrast Checker (, both excellent options.

Color contrast can be boiled down to raw, quantifiable numbers. This makes it easy to measure acceptable vs. unacceptable contrast.

Contrast Ratio Basics

Given a pair of hex code colors, a test will return a contrast ratio. As mentioned, the colors we want to test are:

  1. A text color
  2. A background color that text will sit on top of

The resulting contrast ratio can be thought of as the difference between the two colors. If the delta, or difference, is wide enough – as determined by Web Content Accessibility Guidelines (WCAG) – then the contrast is said to be ADA compliant. That’s the stamp of approval we want.

So, just how much contrast is enough?

  • A ratio of 4.5:1 for normal text
  • A ratio of 3:1 for large text (heading size)

Notice the difference in these two requirements. Large text requires less contrast because the text will literally appear larger and thus easier to read on-screen, regardless of color.

Run Your Tests

Without a doubt, the first contrast test to conduct is for the main content section or “body content” of your website. In this blog, the body content is what you are reading now. The color of the paragraph text in this section compared to the color of the background it sits on top of is the essential contrast test to perform.

For example, using a dark color we mentioned earlier, #0d160b, let’s test that on white:

Contrast ratio test result with a ratio of 10.31:1. The text "The five boxing wizards jump quickly." receives a WCAG AA and AAA pass.

It passes with ease (flying colors?)! A ratio above 10 when we only needed 4.5.

Next, test other colors you want in your design.

If your headings/titles will use a secondary color, say, #51b6e6, also on white, let’s test that:

An image showing a contrast ratio test result of 2.28:1, which fails WCAG AA and AAA standards for normal text. The sample text reads "The five boxing wizards jump quickly.

Not enough contrast! What to do now?

If the background is light, as in this example, either:

  • Darken the text
  • Lighten the background further

If the background is dark:

  • Lighten the text
  • Darken the background further

So, let’s drag our color picker to make it darker:

A gradient background from light blue to dark blue with a red arrow pointing to a small white circle in the upper right corner.

The hex color we landed on, #187dae, tests perfectly.

Image showing a foreground color code #187DAE with an adjustable lightness slider. Below, a contrast ratio display reads 4.58:1.

A neat feature, the Accessible Colors website provides immediate color alternatives in the event a test doesn’t pass.

The goal is to land on a color palette where all different color combinations that will occur on your website meet the specified ratios.

If you struggle, even in the slightest, to read your content on the web, someone else will struggle more. The text probably lacks sufficient contrast. Test and adjust.

Accessibility is a Process

Achieving good accessibility on your website is an iterative process, and you might not have it right the first time. Nonetheless, the fundamental choices we make, like picking colors, can greatly determine the readability of everything in your content. So respect your user, strive for accessibility, and choose those colors wisely.

If the above is too daunting, however, PaperStreet takes pride in our design awards and our expertise in ADA compliance. Schedule a free consultation with us and we’ll outline what your site needs to maximize accessibility for all of your potential site visitors.

Share This

Join the Sales and Marketing News, receive our last insights, tips and best practices.

Our 7 Guarantees

Keeping 2,000+ Clients Happy Since 2001.

You Will Love Your Design We design to please you and your clients
Same-Day Support 24-hour turnaround edits during business hours
Free Education We provide knowledge to help you expand
No Hidden Charges We quote flat-rate projects
Own Your Site No strings attached
We Create Results SEO, PPC, content + design = clients
We Make Life Easier One agency for web, branding and marketing