Spanish Total.js
English
Documentation For AI agents
Contents

Check that a text reads

The contrast says how well a text reads on the colour behind it. TotalColor measures it as the accessibility rules of the web do (WCAG 2), and finds the nearest colour that passes.

.md GitHub
On this page

Measure two colours

  1. Put the colour of the text in The colour: pick it or write it.
  2. Put the colour behind it in Ground, in the card On a ground. Write it, or press the dropper next to the field.

The button with the round arrow swaps the two.

On the Mac and on Windows, there is a shorter way. Press Pick the text, then the ground, click the text, and then click what is behind it. If the picker needs another click for the second one, the line at the bottom says so and the dropper next to Ground is ready: press Enter.

Read the result

The sample shows a large and a usual text in your two colours. Below is the contrast, from 1 to 1 (the same colour) to 21 to 1 (black on white). Each line says Reads or Does not:

LineIt needs
Text4.5 to 1
Large text and controls3 to 1
Text, the strict rule7 to 1
Large text, the strict rule4.5 to 1

The first two are the level AA of WCAG, and the strict ones are the level AAA.

A colour that is not solid is measured as it looks on the ground. A ground that is not solid is measured as it looks on white.

Make it pass

When the colour does not read as text, TotalColor gives the nearest one that does: the same hue, a little darker or lighter. Press Take it to make it the colour of now.

With some grounds there is none. TotalColor then says On this ground no shade of this colour reads as text: change the ground.

Contrast is not all

A good contrast does not tell apart two colours that mean different things. For that, see how other eyes see them.

Made in Europe