On this page

To compare alternating table row colors, look at the two backgrounds next to each other first, then check the text against each background separately. A table can have visibly different rows while still containing text that is hard to read on one of them.
Start by recording the colors actually used in the table. Then inspect several rows in context, identify the weakest text pairing, and consider whether readers can follow the data or understand a status without relying on shading. Alternating shading can make worksheet data easier to scan, but its usefulness depends on how the whole table works together.
Identify the colors to compare
Find two neighboring rows that show the alternating pattern. Record the background color of the first as A and the background color of the next as B. Then identify the text colors that appear on each. If the table uses one text color throughout, you still have two separate text checks: that color against A and the same color against B.
Use the color information available in the application or document where the table was created. For example, select a cell and look for its fill and text color settings. Record the values in a form you can enter into your chosen comparison tool. If the application shows a color name rather than a usable value, look for a way to inspect the selected color more precisely, or ask the person who prepared the table for the values.
Check more than one cell in each kind of row. A heading, highlighted cell, link, or status message may use a different text or background color from the rest of the row. Treat any such combination as an additional pairing rather than assuming the main two checks cover it.
A small working list can keep the task manageable:
| What to record | Example label |
|---|---|
| First row background | A |
| Adjacent row background | B |
| Main text color | T |
| Any other text or background colors | T2, C, and so on |
Keep the labels with your notes until the review is finished. They make it easier to see which comparisons need to be repeated if you change a color later.
Compare adjacent row backgrounds
Place A and B next to each other in your comparison tool, if it supports that input, or inspect adjacent rows in the table itself. The immediate question is practical: can you see where one row ends and the next begins? Look across the width of the table, not just at a small patch of color. A contrast ratio uses relative luminance, so checking the actual colors gives you a more specific comparison than relying on their names.
If your tool reports a ratio for the two backgrounds, record it alongside your observations. The result can help you compare possible revisions, but also look at the table in its intended context. Consider whether the row boundary remains apparent alongside the text, column divisions, and other formatting. A numerical result alone does not tell you whether the whole table is easy to follow.
Try following one entry across to a distant column, then move down a row and repeat. Use a table with enough columns or content to reflect how you expect to read it. If the shading is difficult to distinguish, see whether a horizontal border or another visible row cue helps you keep your place. Check that the cue is clear alongside the existing text and cell divisions.
You can also ask someone else to locate a value across a row and describe what helped them stay on track. If they lose their place, note where it happened before changing the design. That observation can guide whether to adjust the backgrounds, add a boundary, or simplify competing formatting.
Check text on both row colors
Next, compare the actual text and background colors. Enter the main text color and A into a contrast checker, then repeat with the same text color and B. Record both results. If another text color appears on either background, check that combination too; a result for the main text does not automatically cover a differently colored link or label.
Organize the results so that the weaker pairing is easy to find:
| Pairing | What to check |
|---|---|
| Main text on A | Record the result and inspect the text in context |
| Main text on B | Record the result and compare it with the first |
| Other text on A or B | Check each combination where it actually appears |
When the checker offers guidance for different text sizes, use the guidance appropriate to the text you are reviewing. Look at the actual table as well: small text, longer entries, and important labels deserve particular attention when you decide whether the result is comfortable to read. If you are unsure which guidance applies, consult the checker’s explanation or the relevant accessibility guidance before interpreting the result.
Focus first on the pairing with the weaker result. For instance, if the same text is clearer on A than on B, investigate B and its text together. Changing the text color may affect both row types; changing B may affect the separation between A and B. Keep a note of every place the changed color appears so you can check the consequences.
For broader guidance on accessible color use, consult Section508.gov’s color guidance.
Review meaning without color
Alternating shading can help organize a table, but readers also need a way to understand the information when they cannot readily distinguish the row colors. Inspect the table with that question in mind: can you tell which values belong together, and can you understand any meaning assigned to a special shade?
If the alternating pattern simply separates rows, consider whether horizontal borders, spacing, or another visible boundary would help readers follow a line across the table. Review the result with the actual content in place. A boundary is useful only if it makes the relationships clearer rather than adding visual clutter that competes with the data.
If a color also signals a status, include a clear word or other explicit cue for that status. For example, a row marked as needing attention could contain a status cell that says “Needs attention.” Make sure the label identifies the intended row and is understandable alongside any other status labels. If the table has a heading for that information, check that the heading helps explain what the entries mean.
Try these reader questions with the table in front of you:
- Can I follow an entry from its first cell to its last without relying on the alternating shades?
- Can I distinguish ordinary row shading from a special highlight?
- If a row has a status, can I identify it from a label or another explicit cue?
- Are those cues still clear when the table contains long or similar-looking entries?
Use the answers to decide which cue needs work, then review the revised table as a whole.
Adjust and compare again
Make one deliberate change at a time and record what you changed. If A and B are difficult to distinguish, you might adjust one background or add a row boundary. If text on B is the weakest pairing, you might adjust B or the text color. Choose a change that addresses the observed problem, then inspect its effect on the rest of the table.
There is a tradeoff to manage: a background change that makes neighboring rows easier to separate can also make the text on the changed row harder to read. Similarly, changing a shared text color affects its pairing with both backgrounds. A border may help readers follow a row without resolving a weak text pairing, so check both questions separately.
After changing a background, compare it again with its adjacent background and recheck every text color used on it. After changing a text color, recheck it against every background where it appears. If you change a special highlight or status label, review its readability and meaning as well. Update your notes so the final results correspond to the colors actually in use.
Finish by reading across several rows, including one with a long entry and any row with special formatting. Confirm that the row cues and status labels still make sense together. If a comparison remains difficult to interpret, revisit the relevant guidance and test another adjustment; keep the version that best supports both readable text and a table that is easy to follow.