Website Tools

How to Choose Text Colours People Can Actually Read

Light grey text and white-on-yellow buttons look stylish in a design file and frustrating on a phone in sunlight. Contrast ratios tell you what works.

In this article
  1. What contrast ratio means
  2. The targets
  3. Check a colour
  4. Fixing a brand colour that fails
  5. Common contrast mistakes
  6. Colour formats in brief
  7. Testing with real people and devices
  8. Building a small palette

What contrast ratio means

Contrast ratio compares the brightness (relative luminance) of two colours, from 1:1 (identical) to 21:1 (black on white). The Web Content Accessibility Guidelines (WCAG) set minimums so text is readable for people with low vision – and comfortable for everyone else, especially outdoors on phones.

Color ConverterConvert any colour between HEX, RGB, HSL, HSV and CMYK, check its contrast with white and black text (WCAG), and get lighter and darker shades to copy.
Open the free tool

The targets

ContentLevel AALevel AAA
Normal text4.5 : 17 : 1
Large text (18 pt / 24 px, or 14 pt / about 18.7 px bold)3 : 14.5 : 1
Icons, input borders, button outlines3 : 1–

AA is the level most organisations and many laws aim for.

Check a colour

  1. Open the Color Converter and enter a colour in HEX, RGB or HSL.
  2. See its contrast ratio with white and with black.
  3. Look at the row of lighter and darker shades and pick one that meets the target.
  4. Copy the values as HEX, RGB, HSL, HSV or CMYK.

Fixing a brand colour that fails

Many bright brand colours – orange, yellow, light green, sky blue – do not reach 4.5:1 with white text. You do not need to change the brand. Use:

  • the original colour for large elements (big buttons, headings, backgrounds behind dark text),
  • a darker shade of the same hue for small text and links,
  • dark text instead of white on light brand colours.

Keeping the hue and changing only lightness – easy in HSL – preserves the brand feel.

Common contrast mistakes

  • Grey placeholder text in forms that people mistake for filled-in values.
  • Text on photos – add a dark overlay or a solid band behind the text.
  • Colour alone to show meaning, like red for errors – add an icon or words for colour-blind users.
  • Dark mode afterthoughts – check contrast in both themes.

Colour formats in brief

HEX and RGB describe colours for screens; HSL is easiest for creating variations; HSV/HSB is what many design apps show; CMYK describes ink for printing. Screen-to-print conversion is approximate – printers use colour profiles, so ask for a proof for important print jobs.

Testing with real people and devices

Numbers are a guide, not the whole story. Look at your pages on a cheap phone outdoors, with screen brightness low, and ask someone older or with glasses to read them. Browser developer tools can also simulate colour blindness – useful for checking charts and status colours.

Building a small palette

From one brand colour, pick: a dark shade for text and links, the brand colour for buttons, a very light tint for backgrounds and highlights, and neutral greys. Store them as CSS variables so the whole site stays consistent. To get the exact colour from a logo, use the Image Color Picker; for the tab icon, match it in the Favicon Generator.

Color ConverterConvert any colour between HEX, RGB, HSL, HSV and CMYK, check its contrast with white and black text (WCAG), and get lighter and darker shades to copy.
Open the free tool
Keep reading

Related articles

All articles
Image

How to Find the Exact Colour Code from Any Image

Need the blue in a client’s logo or the shade of a paint swatch? Pick it straight from the image and get codes you can paste into any design tool.

3 min read
Image

How to Make a Favicon and Add It to Your Website

The tiny icon in the browser tab makes your site look finished and easy to find among open tabs. Here is how to create a full set and install it.

3 min read
Dev

Speed Up Your Website: How to Minify CSS the Safe Way

Stylesheets block a page from showing until they load, so every kilobyte matters. Minifying CSS is a quick, safe win – if the tool knows which spaces to keep.

3 min read