Three USWDS grade points help set text and button contrast: 0 and 100 as anchors, 50 for AA, and 70 and up for AAA. Most landing pages are built from a small set of colors. A headline sits on a background, body copy sits on a background, and a call-to-action button has its own fill and its own label. Every one of those pairs has to be readable, and a color that looks fine on your large monitor can wash out on a phone in bright sunlight.
Key takeaways
- Start from the background grade: white is grade 0 and black is grade 100 on the USWDS scale.
- Aim for AAA on text where you can, and meet AA at a minimum.
- Use grade 50 for an element that must read well on both light and dark surfaces, then test it in place.
- Check each button label against its fill, and check borders, focus rings, and icons for non-text contrast.
If your team uses a design system, you can skip much of the guesswork. The U.S. Web Design System (USWDS) organizes its colors by family and by grade, and the grade tells you a lot about how a color will behave next to white or black. You do not need to work for a federal agency to use the idea. You only need to understand what the grade numbers mean and how they connect to the accessibility guidance that governs text contrast.
This post covers three grade points that matter most when you choose text and button colors for a landing page. It also explains what those points do not promise, so you know what still needs a real test.
Why grade numbers help
Picking a color by eye is slow, and it is hard to repeat. Two designers can look at the same blue and disagree about whether it is dark enough for button text. Grades give the team a shared vocabulary. Instead of saying "that blue feels a bit light," someone can say "we are using grade 50 on the white card," and everyone knows what that means in the color set.
Grades also make later changes easier. The number gives you a starting point, and a test confirms the result.
The system is not magic, though. A grade is a guide, and the accessibility level you need depends on the content and on the rules that apply to your site.
How the grade scale works
USWDS uses a 100-point scale to communicate a color's grade, where 0 is pure white and 100 is pure black, according to the USWDS color overview. That single sentence is the key to everything else. Every grade is a position between two ends. Lower grades sit closer to white, and higher grades sit closer to black.
The same page says that pure white is the equivalent of grade 0, and pure black is the equivalent of grade 100. When you read a color name, the number at the end tells you how far along that scale the color sits. A light tint is a low grade. A deep shade is a high grade. A middle grade falls somewhere between the two.
Each color family has 10 grades, which fall between 5 and 90, as described in the USWDS color overview. The grades you can pick from are therefore a set of steps, not a continuous slider, and white and black serve as the reference points at either end.
The same overview notes that the system includes 24 color families, and that a smaller subset of colors uses only a few of those families. For a landing page, this is good news. You do not need to scan the whole library. You can pick a small number of families for your brand colors, then choose grades within those families for text and buttons. A tight palette is easier to test and easier to maintain.
Point one: grade 0 and grade 100 are your anchors
The first grade point is the pair of endpoints. Grade 0 is pure white, and grade 100 is pure black. They anchor the scale, because every other color is measured against these extremes.
In practice, the anchors help you think about direction. If your background is a dark brand color, you are asking how far the text needs to move toward white. The anchors frame the question, even when your actual background is not pure white or pure black.
Many landing pages use a white or near-white page background, which makes grade 0 a common reference. Some pages use a dark hero section with light text, which turns the question around. Either way, the anchors tell you which side of the scale you are working from, and that is the first thing to decide before you pick a specific grade.
Do not overread the endpoints, though. Pure white and pure black are reference points, but a real page often uses colors that are close to them rather than exactly equal. Your test should use the actual colors on the actual page, not the idealized endpoints.
Point two: grade 50 holds up on both white and black
The second grade point is grade 50. According to the USWDS color overview, colors of grade 50 result in Section 508 AA contrast against both pure white (grade 0) and pure black (grade 100). That is a useful property. A grade 50 color is a middle choice that can work on a light background and on a dark one, which makes it flexible when you are not sure which side of the page the color will land on.
This matters most for elements that appear on more than one background. A link color that shows up on a white card and in a dark footer is a good example. Another is an icon that sits on a light section in one part of the page and a dark section in another. A grade 50 color gives you a reasonable starting point for both cases, rather than forcing you to maintain two separate versions.
The wording matters. The quote says that grade 50 results in Section 508 AA contrast against white and black. It does not say that every grade 50 color in every family will pass every text situation, or that grade 50 meets the stricter AAA level. It also does not say that grade 50 suits small body text on every page. Treat grade 50 as a solid middle choice, then test it in the actual layout with the actual font size and weight.
Point three: grade 70 and up reaches AAA
The third grade point is grade 70. The USWDS color overview describes a rule of thumb: a magic number of 70 or more results in WCAG 2.0 AAA contrast. The page gives gray-10 and red-80 as an example. In other words, a pairing at that number results in AAA, the stricter of the two text contrast levels in WCAG.
For a landing page, AAA is a strong target for body copy and for button labels that people need to read quickly. If your headline and paragraphs use a pairing that meets AAA, readers with low vision, color vision differences, or a dim screen have an easier time.
Use the grade as a guide, then confirm with a contrast checker and with a look at the page.
Where AA fits, and why it is the floor
The MDN guide on color contrast advises making color contrast as good as it can be within your design constraints. It says to ideally go for the AAA rating, but to at least meet the AA rating.
That advice gives you a clear order of decisions. Start by asking whether your pair can reach AAA. If the brand, the layout, or the image behind the text makes that hard, check whether the pair at least meets AA. If it does not meet AA, change the color before launch. The phrase "within your design constraints" admits that some projects cannot hit the top level, while still setting a floor most projects should not go below.
For a landing page, this approach keeps the team honest. A marketing lead may want a bright orange button with white text. A designer may want a pale gray subhead for elegance. Measuring each pair against AA and AAA gives everyone the same evidence, so the conversation can focus on trade-offs rather than taste. For a broader pass over a landing page, see Landing page WCAG 2.2 audit: 6 practical checks.
Applying the three points to a landing page
Begin with the page background, because everything else is set against it. If the background is dark, do the reverse.
Next, choose the headline color. Headlines are large, so they are usually easier to read than body copy, but they still need a clear pairing. Try a darker grade for the headline on a light background, and check it against your target level. Then choose the body text color. Body text is where a weak pairing hurts most, because readers spend the most time there. A grade that reaches AAA on the page background is a strong choice for paragraphs.
Finally, set the button colors. A primary button has two colors that matter: the fill and the label. Check the label against the fill, not against the page background. A grade 50 fill is a reasonable starting point because it is cited as working against both white and black. Still, check the label you actually use, white or black, against the exact fill. Do not assume two pairings are interchangeable.
Keep the palette small. Use one or two families for the main brand colors, choose a few grades within them, and reuse those grades across the page. A restrained set of colors is easier to test and less likely to produce a surprise in the final layout.
Illustrative example: one landing page section
Suppose a landing page section has a white background, which is grade 0. Its headline and body copy use a grade 70 text color, which the rule described above associates with AAA contrast. Its call-to-action button has a grade 50 fill, which the grade scale associates with AA contrast against white. Before launch, check the button label against that fill, not against the white background, and then test the hover and focus states.
Buttons and other non-text parts
Text contrast gets most of the attention, but buttons often have parts that are not text. A button border, a focus ring, an icon, or a form field outline all need enough contrast to be seen. The W3C explanation of Success Criterion 1.4.11, Non-text Contrast gives a clear example of how a color can fail this rule. The page notes that yellow (#FFF000) on white has a contrast ratio of 1.2:1, which fails the Non-text contrast criterion.
The lesson for landing pages is simple. A bright yellow outline that looks obvious on a large screen may disappear for a reader with low vision. If a button depends on a border or a ring to show where it is, check that border against the background behind it. The same goes for a checkbox or an input field that uses a thin outline to show its edges.
Icons deserve the same care. A sign-up form may use a small arrow or a checkmark that carries meaning. If the icon is the only signal that a step is complete, make sure it contrasts with its background. Text labels can help, but the icon should not rely on a color that is too close to the surface it sits on. For a related check on icons and links, see Signup icon link contrast: 2 ratios to check.
The W3C example is about non-text contrast, not text contrast. The criteria are related, but they are not the same. Passing a text contrast check does not guarantee that your button outline or icon passes too. Test both.
Test before you ship
A grade number is a starting point, not a final answer. Before a landing page goes live, check each text and button pair with a contrast checker that accepts the exact hex or color values you plan to use. Compare the result against your target level, whether AA or AAA. If a pair misses, move the grade one step at a time and test again, rather than making a large jump that changes the look of the whole page. For more figures to check before a page goes live, see Signup page contrast: 5 figures to check before publishing.
Test on real screens too. Colors can shift across monitors, phones, and printed proofs. A pairing that looks fine on a bright office display may be hard to read on a dim laptop on a train. Look at the page at different zoom levels, and check that labels remain clear when the font size changes or when the browser uses a high-contrast setting.
Test the states as well. Buttons change color on hover, focus, and press. Links change color after a visit. Error messages often use a red that must stay readable on a light background. Each state is a separate pair, so run the checks on each one. A button that passes in its default state may fail on hover, and a focus ring that is easy to see on one background may vanish on another.
Ask someone outside the design work to read the page. Fresh eyes catch faint text, small button labels, and borders that blend into the surface. Their feedback is useful even when the contrast numbers pass, because a number cannot judge whether the page feels calm, crowded, or hard to scan.
Common mistakes to avoid
The first mistake is choosing colors by brand alone. A brand color can be lovely and still fail as text on a light background. When the brand color is too light for text, use a darker grade in the same family for the text, and keep the brand color for large shapes or accents where it can be seen clearly.
The second mistake is using the middle of the scale without checking. Grade 50 is a strong choice in many cases, but the quote is specific about Section 508 AA against white and black. It is not a blanket guarantee for every pairing, font size, or background image.
The third mistake is treating AAA as the only goal. The MDN guidance says to aim for AAA where you can, but to meet AA at a minimum. If one element cannot reach AAA, adjust that element and keep the rest of the page at the higher level where possible.
The fourth mistake is forgetting the non-text parts. Focus rings, borders, and icons are often the first things to disappear. A design that looks clean in a screenshot may be hard to navigate with a keyboard. Check each visible boundary, not just the words.
Wrap up
Three grade points give you a practical way to set contrast in USWDS colors. Grade 0 and grade 100 are the anchors that define the ends of the scale. Grade 50 gives you a middle choice that the USWDS overview says achieves Section 508 AA contrast against both white and black. Grade 70 and up is the point where the overview says a pairing reaches WCAG 2.0 AAA contrast.
Use those points as a guide, not a guarantee. Test the actual colors, font sizes, and states on the page. Keep the goal in view: readers should be able to read your headline, understand your offer, and press the button without strain. When the contrast is right, the page does its job, and the sign-up form gets the attention it deserves.
Next step for today: list every text and button pair on your current landing page, then check each one against the grade points above.
Frequently asked questions
Does grade 50 meet AAA?
Grade 50 is cited for Section 508 AA contrast against white and black, not for AAA, which the post ties to grade 70 and up.
How many grades does each color family have?
Each color family has 10 grades, which fall between 5 and 90.