Learning how to check colour contrast.

Checking Contrast Before Publishing

I remember sitting in my workshop back in ’99, squinting at a cathode-ray tube monitor while trying to debug a circuit diagram, only to realize the grey text on a light grey background was practically invisible. It’s a mistake I see people making all over the web today, usually because some “expert” has convinced them they need a massive design agency to handle it. They’ll try to sell you a subscription to a fancy suite of tools just to learn how to check colour contrast, acting like it’s some sort of dark art. It isn’t. It’s just basic physics and a bit of common sense, and you shouldn’t have to pay a premium just to make sure your visitors can actually read your words.

I’m not here to blow smoke or upsell you on a complicated workflow. My goal is simple: I want to show you the most direct, no-nonsense way to verify your site’s legibility so you can get back to your actual work. I’ll walk you through the free, reliable methods I use to ensure my own projects pass the test without any of the unnecessary fluff. You don’t need a degree in design; you just need the right tool and a bit of an afternoon.

Mastering the Colour Contrast Ratio Calculator

Mastering the Colour Contrast Ratio Calculator tool.

Now, you don’t need to be a mathematician to get this right, but you do need a decent colour contrast ratio calculator. I remember back in the late nineties, we just eyeballed things and hoped for the best. These days, that’s a recipe for a site that nobody can actually read. Most of these online tools are straightforward: you plug in your hex codes—the foreground and background colour testing part—and it spits out a number. It’s not magic; it’s just math telling you if your text is going to vanish into the background.

When you’re looking at those results, don’t get bogged down in the jargon. Just aim for the targets set by the WCAG 2.1 compliance checklist. For standard text, you’re generally looking for a ratio of at least 4.5:1. If you’re using larger, bolder headings, you can sometimes get away with 3:1, but I’ve always found it’s better to be safe than sorry. Over-delivering on clarity is much easier than trying to fix a muddy, unreadable layout after you’ve already launched.

Foreground and Background Colour Testing Made Simple

Foreground and Background Colour Testing Made Simple

Now, you don’t need to be a mathematician to get this right. When I was setting up my first rigs back in ’97, we didn’t have these fancy automated tools; we just squinted at the monitor until our eyes hurt. Today, foreground and background colour testing is much more straightforward. You just need to pick your text colour and your page background colour, plug them into a tool, and see if they play nice. It’s not about being “artsy”—it’s about making sure someone can actually read your words without a magnifying glass.

If you’re serious about improving text readability, stop guessing based on what “looks good” to you. Your eyes might be adjusted to the glow, but a visitor with even slight visual impairments will struggle if you use light grey text on a white background. I always tell people to aim for a high enough ratio that the text actually pops against the surface. It’s a simple step, but skipping it is exactly how you end up with a site that looks professional but functions like a mess.

A few things I’ve learned about not making a mess of your readability

  • Don’t just eyeball it; your eyes are lying to you. I used to think a light grey on white looked “clean” and “modern,” but once I actually ran the numbers, I realized I was making my visitors squint like they were looking at a bad telescope lens. Use a tool.
  • Aim for the higher standard (WCAG AA) from the jump. There’s no point in getting halfway through a site build only to realize your main headings are illegible. If you hit that 4.5:1 ratio for normal text, you’re usually on safe ground.
  • Watch out for text over images. This is where most people trip up. Even if the image is beautiful, if there’s a bright patch behind your words, your contrast ratio goes out the window. If you can’t guarantee a solid background, put a subtle dark overlay behind the text.
  • Test in different lighting. I often check my work on my monitor, then walk over to the window or check it on my phone in the sun. If you can’t read your own site when the sun is hitting your screen, your contrast ratio is too low.
  • Remember that “aesthetic” shouldn’t come at the cost of function. I’ve seen plenty of flashy, high-end sites that are practically useless because the designer was too obsessed with a specific color palette to care if anyone could actually read the content. Keep it simple and keep it readable.

The bottom line on contrast

Don’t get bogged down in the math; just aim for that 4.5:1 ratio for your main text and you’ll be ahead of most people.

Test your colours in different lighting, because what looks sharp on my monitor might be a squint-fest on a phone in direct sunlight.

Avoid the temptation to buy “accessibility suites” or fancy plugins—a simple contrast checker tool is all you actually need to get the job done.

Don't Overthink It, Just Get It Right

Don't Overthink It, Just Get It Right.

At the end of the day, checking your contrast isn’t some complex engineering feat that requires a specialized degree or a monthly subscription to a fancy design suite. You’ve got the tools now: use a simple calculator, test your foreground against your background, and ensure your text doesn’t disappear into the scenery. It’s about being methodical. If you can follow a schematic for a basic circuit, you can certainly verify a few hex codes to make sure your site is actually readable. Don’t let the “accessibility experts” convince you that this is a massive, expensive undertaking. It’s just good digital housekeeping, plain and simple.

I’ve seen plenty of sites go live that look stunning in a dark office but are completely illegible under a bit of sunlight or on a cheap mobile screen. My advice? Don’t aim for perfection, just aim for clarity. Once you’ve run your tests and confirmed your ratios are up to scratch, stop tweaking the pixels and get the site live. A website that is easy to read is infinitely better than a “designer” site that nobody can actually use. You’ve got the domain, you’ve got the host, and now you’ve got the contrast sorted. Now, go launch it.

About Halvard Boateng

A first website needs a domain, a host and an afternoon. The rest is upselling.