Custom checkbox colors need visible outlines, checked states and focus indicators; the W3C examples show passing color combinations to compare with your own.
Key takeaways
- Collect the exact hex values before measuring contrast.
- Check the outline, check mark and focus ring separately.
- Use a visible check mark rather than a hue change alone.
- Test the form with a keyboard before release.
When a growth team restyles a signup form, the controls are usually the first thing to change. The default checkbox looks dated next to a brand palette, so someone swaps in a purple box, rounds the corners, and enlarges the check mark. It looks better. The trouble is that a control only works if people can see it. A person with low vision, a person using a phone in bright sunlight, or a person whose monitor washes out pale greys all need to find the box, tell whether it is checked, and know where to click.
That is why accessibility guidance treats control colors as their own topic, separate from body text. The box, the circle, and the focus ring are just as much part of the form as the words beside them. This post walks through four passing examples from the W3C, explains what each one shows, and ends with a short list of checks to run before a new signup form goes live.
What the W3C rule asks for
The relevant guidance is the W3C's Understanding Success Criterion 1.4.11: Non-text Contrast. The core requirement is short. Unless the control is inactive, any visual information a user needs to identify that a control is present, and to see how to operate it, must have a minimum 3:1 contrast ratio with the adjacent colors.
Two parts of that sentence matter for restyled forms. The first is "adjacent." You are not measuring the box against the page in general. You measure it against the colors it actually touches, such as the page background, the fill inside the box, or the border around it. The second is "necessary." The rule covers the visual cues a person needs to find and operate the control. A decorative flourish is not in scope, but the outline that makes an empty box visible is.
The same page notes that the requirements and rationale are similar to those for large text in 1.4.3 Contrast (Minimum). Control colors are therefore not a loose design preference. They sit inside a defined contrast rule that can be checked with a measurement, the same way text contrast is checked. For text elsewhere in the form, see signup page contrast.
Example 1: a dark blue edge on white
The first passing example is about an input field rather than a checkbox, but the logic carries over. The W3C describes an input with a white background and a dark blue color adjacent to the control, #003366, and marks it as a pass because the contrast between the input background and that adjacent color is sufficient. You can read the full example on the Non-text Contrast page.
The border is the visual edge that tells someone a field exists. Dark blue on white gives strong separation between the control and the page. On a checkbox, the outline should be the color that separates the box from the page, and it should be easy to see at a glance.
For a growth lead, the practical question is not "is this blue on-brand?" It is "does the edge of this control stand out from the page?" The rule asks the second question.
Example 2: a light grey check on a purple box
The second example is the one most teams want to copy. The W3C describes a customized checkbox with a light grey check, #E5E5E5, on a purple box, #6221EA, and marks it as a pass. The stated contrast ratio between the check and the box is 5.6:1, well above the 3:1 minimum. You can read the full example on the W3C Non-text Contrast page.
Two details are worth noting. First, the check mark is the piece that carries the checked state. If the mark is hard to see, a person may not be able to tell that the box is ticked, even if the box itself is easy to find. Second, the check does not need to be white. Measure the mark against the box, not just the box against the page.
A custom checkbox has more than one visual part. The outline, the fill, and the check each have a job. A design that gets the fill right but lets the check fade into it has solved only half of the problem.
Example 3: a grey radio button in its default state
The third example is a radio button. The W3C shows the first radio button in its default state with a grey circle, #949494, and labels it a pass. A grey circle is often the first thing a person sees for each option. If it blends into the background, the option is harder to find, even though it is there.
The example covers the default, unselected state, which is worth remembering when you restyle radio groups. Teams tend to focus on the selected option, since it gets the bold brand color. The unselected circles are what a person sees first, and they need the same contrast check as any other state.
When you test radio buttons, place the default state next to the selected state and ask whether a first-time visitor can tell which circles are options. If the answer is unclear, review the default color against the background.
Example 4: a focus indicator at 3:1
The fourth example is about keyboard focus. The W3C describes a button that, when focused, still has a sufficiently contrasting focus indicator: grey #949494 against white, with a contrast ratio of 3:1. The example is a pass at the minimum. It is described on the Non-text Contrast page. It is a button rather than a checkbox, but the focus idea applies to every control in a form.
Focus indicators matter for signup forms because many people move through them with a keyboard, a switch device, or a screen reader. The focus indicator is how they see where they are. Teams sometimes remove default focus outlines to get a cleaner look, which makes the form harder to use for the people who depend on it most.
If you restyle the focus ring, keep it at least as visible as this example. Measure the ring against the colors directly beside it, not against the page as a whole.
Shadows and borders count toward the color
Designers often add a soft shadow to an input or checkbox and treat it as the real edge. The W3C addresses this directly. It notes that a 3D drop-shadow on an input, or a dark border line between contrasting backgrounds, is considered to be subsumed into the color closest in brightness, meaning perceived luminance. The wording is on the Non-text Contrast page.
Judge the outline or fill a person actually sees, not the decoration around it.
This is a common surprise for teams that review designs by eye. A checkbox that looks crisp in a design tool can look flat on a dim laptop. Measuring the real hex values avoids that surprise.
Color alone is not enough for states
Contrast is only part of the story. A control also has to show its state without depending on hue alone. The W3C notes that non-text information within controls that uses a change of hue alone to convey the value or state of an input is likely to fail the Use of color criterion rather than the non-text contrast one. Its example is a star rating where each star has a black outline and is filled either yellow, when full, or white, when empty. The Non-text Contrast page explains the reasoning.
Translate that to a signup form. A checkbox that turns from grey to purple when ticked, with no check mark and no change in shape, depends on hue alone to show its state. A person who cannot distinguish those two colors may not know whether the box is checked. Pair the color change with a visible shape change, such as a check mark that appears only when the box is ticked.
Links next to consent checkboxes
Many signup forms place a consent checkbox next to a link to terms of service or a privacy policy. The link is a control too, and its color has to be distinguishable from the surrounding text. The W3C describes a technique, G183, that uses a contrast ratio of 3:1 with surrounding text to distinguish links and controls. The guidance is on the Non-text Contrast page.
The same page explains how link color relates to the Use of color criterion. It says a link color that meets the 3:1 contrast ratio relative to the non-linked text color satisfies that criterion, because the link relies on contrast as well as hue to show that it is a link.
A common mistake is to set the consent text in pale grey and then give the terms link the same grey. Keep the link easy to spot. Someone who wants to read the terms before agreeing should be able to find them without guessing.
When a control counts as inactive
Teams sometimes grey out options to show that they are unavailable, so it matters what counts as inactive.
Be strict about the definition. An option that a person can still click, tap, or select is not inactive, even if your design makes it look faded. If an option is truly unavailable, the reason should be clear from the form itself, such as a message that explains why a choice cannot be made. Do not use faded styling to hide a control people are expected to use.
This is a judgment call, and it should be made with the actual behavior of the form in view, not only the look of the design file.
How to check a restyled checkbox
Before a new signup form goes live, run a short set of checks. None requires special equipment, and each can be done by someone on the growth or design team.
- Collect the exact hex values for the box outline, the box fill, the check or dot, and the page background. Do not check a screenshot, because screenshots can change colors.
- Measure the box outline against the colors it touches, usually the page background and the fill inside the box.
- Measure the check mark or radio dot against the box fill. If the mark is too close in tone to the fill, a checked box may look unchecked.
- Measure the focus ring against the colors beside it.
- Compare the checked and unchecked states side by side.
- Check the link color next to consent text.
- Include shadows and borders in your review of the control's edge.
- Test with a keyboard. Tab through the form and confirm the focus ring is visible at every stop.
Use a contrast checker tool to get the ratios, and keep a record of the hex values you tested. When the palette changes, run the checks again, because a brand refresh can quietly change the numbers. Continue the broader form review with signup accessibility.
Common mistakes growth teams make
The first mistake is removing the focus ring because it looks like a default browser outline. The outline is how keyboard users see where they are. If the look bothers the team, restyle the ring so it is visible and still on-brand.
The second mistake is making the unselected state too pale. A light grey circle on white may look elegant in a mockup and be hard to see on a dim screen. The W3C radio example gives a concrete reference point for the review.
Another mistake is measuring only once. New promotional banners, dark mode settings, and different screen brightness levels can all change how a control looks. Repeat the check after significant changes.
Illustrative example: reviewing a signup form
Suppose you review 4 controls and find that 3 pass their contrast checks while 1 has a faint focus ring. That leaves 1 control to adjust. Change its focus color, measure it against its adjacent colors, and repeat the keyboard test. Record the new hex values alongside the result so the next palette review starts with the colors actually tested.
Today, choose a checkbox in your signup form, collect its outline, fill and check colors, and measure their contrast. Record the result before changing the palette.
What the four examples do and do not prove
Do these examples prove that my palette passes?
No, you still need to measure your own hex values against the colors beside them. Contrast depends on the exact colors you choose, and a near-match can fail while a similar-looking color passes. The examples are reference points, not a guarantee.
Does passing contrast mean the whole form passes?
No, a form that passes the contrast check can still fail another part of the standard. The guidance has exceptions, including the inactive control exception, and it separates non-text contrast from other criteria such as Use of color. For a full review, read the W3C Understanding page for 1.4.11 and review the related criteria listed there.
This post is general guidance, not legal advice. If your signup flow has specific compliance requirements in your market, check them with the people who own that work.