A chart can be accurate, well labelled and completely unreadable. The data is right, the axis is honest, and it still fails because the pale blue line fades into the white plot and the axis numbers are set in a gray that looked elegant in the design tool. Nobody notices in the review meeting, because everyone is looking at the trend. The readers pay for it later, on worse screens.
The Color Contrast Checker on Ovatly measures one text color against one background color with the WCAG 2.1 relative luminance formula. A chart is not one pair, it is a dozen pairs stacked together. This guide works through them pair by pair, and shows where the pair check stops and a different test takes over.
Contents
- Quick answer
- A chart is a stack of pairs, not one pair
- Which pairs a chart actually contains
- The thresholds, and which ones apply to charts
- How to check a chart, step by step
- Worked example: a blue series on a white plot
- Limitations and honest tradeoffs
- Common mistakes
- FAQs
- Conclusion
Quick answer
Check a chart pair by pair. Every label, axis number and legend entry is text on the chart background, so enter that text color and the background into the Color Contrast Checker and read the result at the text size the chart really uses. Chart text is almost always normal text, which makes the WCAG AA line of 4.5:1 the working target. Then check each series color against the plot background the same way. One thing the checker cannot do: tell you whether two series are distinguishable from each other. That is a separate question, answered with a color blindness simulation.
A chart is a stack of pairs, not one pair
Contrast is always a relationship between two colors: a foreground doing the communicating and a background it sits on. A paragraph of body text has one obvious pair. A chart has many, and they are easy to miss because they were chosen at different moments. The series colors came from a palette. The axis gray came from a default. The legend text came from the page's body style. Each was fine on its own terms, and none was tested as a pair.
Working pair by pair is slower than a single whole-chart verdict, but it is the only honest method a two-color checker supports. Most charts reuse the same few colors: one background, a handful of series colors, one or two text colors. Test each unique combination once and the chart is covered.
Which pairs a chart actually contains
Start with the text pairs, because they carry the numbers your reader came for. Axis labels and tick numbers against the plot or page background. Data labels printed next to points or bars, against whatever sits behind them, which may be the plot background or the bar itself. A chart title is text too, though usually large enough for the large-text rows.
Then the series pairs: a line or bar is read against the plot background, and a label printed inside a bar is read against the bar's fill. Gridlines are usually decorative, but if a reader needs one to read a value, it has stopped being decoration.
The thresholds, and which ones apply to charts
WCAG sets two levels. AA needs 4.5:1 for normal text and 3:1 for large text. AAA needs 7:1 for normal text and 4.5:1 for large text. Large text has an exact definition: at least 18pt, or 14pt bold. Everything smaller is normal text.
That definition is why chart text almost never gets the easier rows. Axis numbers, legend entries and data labels are small by design, so they are normal text and the AA line of 4.5:1 is the one to meet. AA is also the level most laws and procurement rules reference, so it is the practical floor for anything published. AAA at 7:1 is a reasonable aim for key labels when the palette allows it, and an unrealistic demand for every element in a dense chart.
How to check a chart, step by step
- List the chart's colors by job: background, each series color, each text color, and which text sits on which background.
- Open the Color Contrast Checker and enter the first text color and its background.
- Read the ratio and the pass or fail rows for normal text, since chart text is almost always normal size.
- Use Swap colors when a pair appears reversed, for example white label text inside a colored bar. The ratio is symmetric, so the score is the same, but checking the pairing as it appears keeps you honest about which size row applies.
- Repeat for each series color against the plot background, and fix failures as you find them.
Worked example: a blue series on a white plot
Take the checker's own reference pair: #2563EB on #FFFFFF measures 5.17:1. Read it three ways. As a chart label or legend entry at normal size, it passes AA, because 5.17 is above the 4.5 line. As normal text judged at AAA, it fails, because AAA normal text needs 7:1. As large text, it passes AAA, because the large-text AAA line is 4.5:1.
So the same blue is a sound choice for labels and legend text at AA, a legitimate series color against a white plot, and not strong enough if your standard is AAA for small text. If it failed even AA, the fix is mechanical: darken it one step at a time, re-checking after each step, until it passes, and keep the bright original for large elements where the thresholds are lower.
Limitations and honest tradeoffs
The pair check has a hard boundary. The checker judges a color against a background. It says nothing about whether two series colors can be told apart from each other. A red series and a green series can each pass comfortably against white and still collapse into the same tone for a color blind reader. That question belongs to the Color Blindness Simulator, which shows how the palette appears under the main color vision deficiencies. Run both tests; neither replaces the other.
Two more cautions. The checker follows WCAG 2.1 exactly, and WCAG 3 drafts use a different model, APCA, which can judge the same pair differently. And a ratio is a floor, not a guarantee: thin line weights and tiny label sizes can still be hard to read at a passing ratio, because contrast is only one part of readability.
Common mistakes
- Checking the palette, not the pairs. A palette that looks balanced as swatches says nothing about a label color on a background. Test the combinations the chart actually uses.
- Judging chart labels by the large-text rows. Labels are small. Unless a label is genuinely at least 18pt, or 14pt bold, it is normal text and needs 4.5:1 at AA.
- Forgetting the label inside the bar. White text on a light bar fill is a pair too, often the worst one in the chart.
- Assuming passing series colors are distinguishable. Two series can both pass against the background and still be confusable with each other. That needs the simulation test, not another ratio.
- Lightening a failing color for style. A failing pair is fixed by darkening one step at a time and re-checking, not by hoping print will be kind.
FAQs
Can the checker test a whole chart at once? No. The checker measures one text color against one background color at a time, and it has no chart mode. The practical method is pair by pair: check each label, axis text and legend color against the chart background, then check each series color against the plot background.
What ratio should chart labels meet? Chart labels, axis text and legend entries are almost always normal text, so the WCAG AA line of 4.5:1 is the working target. If a label genuinely counts as large text, at least 18pt or 14pt bold, the AA large-text line of 3:1 applies instead.
Does the order of the two colors matter? No. The ratio is symmetric, so a blue series on a white plot scores exactly the same as white on that blue. Swap colors in the checker tests the inverse pairing, which is handy when a legend chip reverses the pair.
Can the checker tell whether two series are distinguishable from each other? No. The checker only judges a color against a background. Whether two series colors collapse into each other for a color blind reader is a different question, and the Color Blindness Simulator is the companion test for it.
What do I do when a series color fails? Darken the color one step at a time and re-check it after each step until it passes. Keep the bright original for places where the thresholds are lower or absent, such as large headings, borders and graphics, rather than for small labels.
Conclusion
Chart contrast is a short list of pairs, each checked at the size the text really is, with AA 4.5:1 as the working line for the small text charts live on. The Color Contrast Checker handles every pair honestly, one at a time. For the wider set of color topics, see the Color and Design Tools guides. If your slides need the same treatment, our companion guide on contrast for presentations and slides applies the same pair method to decks.