THE GITHTML FIELD GUIDE
Check contrast of meaningful chart lines and boundaries
Check the contrast of graphical parts needed to understand a chart, not only the text labels. Thin low-contrast lines can disappear even when their colors differ. Use sufficient contrast against adjacent colors, distinguish series with additional cues, and provide textual findings so the visual encoding is not the only route to the result.
Understand the access barrier
A pale grid may be decorative, while a pale boundary between two meaningful regions is essential. Treating every line identically can either create unnecessary visual noise or leave the important distinction difficult to perceive.
Use a deliberate document pattern
Identify which marks convey values, relationships, or states. Strengthen those marks and avoid relying on hue alone. A labeled line style or direct annotation can help separate series, but it should remain legible at the size used in the document.
- Classify graphical elements according to whether they are necessary for interpretation.
- Check essential boundaries and marks against adjacent colors.
- Add direct labels or patterns and a concise textual account of the finding.
Chart review: essential axes, series lines, boundaries, labels, and textual findings.Check the actual reading experience
Inspect the chart at its actual reading size and against each supported background. A large design preview can hide weak thin strokes.
Separate essential marks from decorative structure
Imagine two latency series drawn as thin pale blue and pale orange lines on white. Their hues differ, yet both can become difficult to see at the small size used on a phone. A legend with readable text does not rescue a series line that disappears. Identify the marks needed to follow each trend, then check their contrast against the adjacent background and against neighboring marks where those boundaries carry meaning.
WCAG’s non-text contrast guidance uses a 3:1 threshold for the applicable essential graphical information, with important exceptions and interpretation details. Do not apply the number mechanically to every decorative grid line. A faint grid may be dispensable if labeled values and the series remain understandable, while a boundary separating meaningful regions may be essential. Conversely, visible labels and values that provide equivalent information can change which graphical distinctions are necessary to interpret the result.
Improve the chart through several complementary choices: stronger essential strokes, direct series labels, distinguishable line patterns or markers, and a short textual statement of the main finding. Check that dashed patterns remain recognizable after resizing and that labels do not overlap data. Avoid solving contrast by making every grid line equally dark, which can bury the actual series in visual noise. Review both supported color schemes and the final rendered size, not only the large design canvas. For precise comparisons, include an accessible data representation where appropriate. A color-vision simulation can reveal some problems, but it is not a substitute for measured contrast, semantic alternatives, and real reading checks.
Sources and further reading
AI-assisted writing with source-linked guidance and illustrative examples. Read our editorial approach or report a correction.