HIYSL REFERENCE / FIELD NOTES

How to Check Checkbox Checkmark Contrast Against Its Box

In this guide
AI-generated illustration; not taken on location · Illustration highlighting a checkmark and the fill behind it in a checked box.
AI-generated illustration; not taken on location · Compare the checkmark with the box fill directly behind it.AI-generated illustration

To check a checkbox’s checkmark contrast, identify the color of the visible mark and the color directly behind it inside the checked box. Enter those two colors into a contrast checker, then consider its result alongside the guidance that applies to your situation.

If the mark is difficult to see, try changing one of the two colors and compare the revised pair again. The checkmark is only one part of the control: also look at the box boundary and at how the checked and unchecked states appear in context.

Identify the two colors to compare

Begin with the checkbox in its checked state. Your first color is the visible checkmark. Your second is the fill immediately behind that mark, inside the box. Keep those two targets in mind as you inspect the control: the box border and the surrounding page may be different colors, but they answer different questions.

For example, imagine a dark mark inside a pale box with a darker outline. For the checkmark comparison, use the dark mark and the pale fill. Comparing the mark with the outline would tell you about a different pair, while comparing it with the page outside the box would miss the immediate background.

Find usable color values

If the application or design you are reviewing gives you the colors, note the value for the checkmark and the value for the checked box fill. Confirm that both values correspond to the state you are actually looking at. A value associated with an unchecked box may not describe the background behind the visible mark.

If you can inspect the displayed colors with a color picker, select a point on the mark and then a point on the fill close to it. Record each result with a label, such as “checkmark” and “checked fill,” so you can enter them consistently later. Avoid selecting the box outline or the area outside the control by mistake.

The mark may be too small to select confidently. If so, enlarge the view if your device or application allows it, then inspect the mark again. Choose a point clearly inside the visible mark and another clearly inside the adjacent fill. If you still cannot tell what you have selected, look for the color values in the settings or information available to you, or ask the person responsible for the checkbox. Treat an uncertain sample as a starting point to verify, rather than as a definitive measurement.

When the fill varies behind the mark, note where you took each sample and inspect more than one relevant area. If effects or transparency make it unclear which values represent what you see, seek the displayed colors or ask for help identifying them before relying on the comparison.

Compare the checkmark with the box

Open a contrast checker and enter the two identified color values: the checkmark color in one input and the checked box fill in the other. Follow the checker’s own instructions for the format it accepts. Before interpreting the result, check that both entries match the values you recorded and that you have not substituted the border or page color for the fill.

Read the contrast ratio reported for that pair and record it with the two color values. The ratio gives you a way to compare the pair with a later revision. To decide whether the result meets a particular accessibility requirement, consult the current guidance that applies to your control and use case. A number alone does not tell you which requirement applies, and this walkthrough does not set a pass threshold.

Use the result to make a decision

If the applicable guidance identifies a target, compare the reported result with that target. If you are unsure which guidance applies, ask an accessibility specialist or the team responsible for the interface before describing the checkbox as compliant. The U.S. Web Design System checkbox guidance is a useful place to begin reviewing checkbox design; check the relevant guidance for your own situation as well.

Even when you are checking against a target, look at the actual control. Ask whether you can readily find the mark within the box at the size and settings you normally use. The numerical comparison and your visual review answer related questions: one describes the entered colors, while the other helps you notice whether the checked state is clear in the interface.

If the colors were sampled with uncertainty, repeat the comparison when you can obtain more reliable values. Keep the original result labeled as provisional so it is not confused with the result for a confirmed pair. If there are several relevant background areas behind the mark, compare the mark with each area you need to assess and keep the results separate.

Adjust and compare again

If the mark is hard to distinguish from the fill, decide which color you can change. You might be able to adjust the mark, the box fill, or both. If one color needs to stay fixed, keep it as your reference and experiment with the other. If you do not control either color, record what you found and share it with someone who can make the change.

Try a pair that looks more distinct, then enter the revised values into the same contrast checker. For instance, if a light mark is difficult to see against a light fill, you could try a darker mark or a darker fill, depending on which you can edit. Check the actual combination rather than assuming that a proposed change has solved the problem.

A simple comparison record keeps the decision clear:

Version Checkmark Checked fill Result and observation
Original Record the original value Record the original value Note the reported ratio and whether the mark is easy to find
Revision Record the changed or retained value Record the changed or retained value Note the new ratio and review the visible mark

Change one color at a time when practical. That makes it easier to see which adjustment affected the result and to return to an earlier option if needed. Compare the revised ratio with the applicable guidance, then inspect the checkbox as it will be displayed. If the result or appearance is still unsatisfactory, try another pair and repeat the check.

A stronger comparison between the mark and fill does not settle every design question. A new fill may affect how clearly the box stands out from its surroundings, for example. Keep a note of the candidate pair and move on to the contextual review before treating the revision as finished.

Review the checkbox in context

Return to the complete checkbox and inspect the box boundary separately from the checkmark. Look at the edge of the box against the color next to it, and identify the relevant colors if you need to make another comparison. Do not reuse the checkmark-to-fill result as the answer for the boundary: it describes a different pair.

Next, switch between the selected and unselected states. Can you tell which state is shown without having to study the control closely? Check that your proposed color change leaves the mark visible when selected and that the unselected box is still identifiable. If a change makes one state clearer but another harder to recognize, revisit the colors and compare the affected areas again.

Check the settings that matter to you

Review the checkbox in the themes and display settings relevant to your use. If you can view it in another browser or application where it will be used, inspect it there too. Record the setting alongside any color values and results, so that a clear result in one view is not mistaken for a check of every view. Where the appearance differs, identify the visible mark and the fill behind it again before comparing them.

Also consider other states that the particular checkbox presents. If you can encounter a state when interacting with it, look at that state in context and ask whether it remains understandable. Use the applicable guidance to decide what further checks are needed; do not assume that a successful checked-state comparison covers them all.

When you cannot change the colors

A browser or another application may control the checkbox colors. Look for an available setting that lets you adjust its appearance, and consult that product’s instructions before changing anything. If no suitable control is available to you, report the issue to the person or team responsible for the application. Include where the checkbox appears, the theme or display setting you used, which state was difficult to see, and any color values or contrast results you could confirm.

Finish by looking at the revised or reported checkbox in its ordinary context. Your aim is to make the selected state recognizable while keeping the box and its other relevant states understandable.

Sources