Contents

To compare two nearly identical HEX colors, first record each code under a separate label. Enter or select each value in your color picker, note the component values it provides, and compare the colors visually. Then place them in the design where they will be used: a difference that matters between adjacent areas may be less relevant when the colors serve as alternatives.
Finish by checking every relevant text and background combination with a contrast checker. A contrast result helps assess readability; it does not decide whether the two colors are visually interchangeable.
Prepare the two HEX values
Label the originals
Copy the first code into a note and label it A. Copy the second below it and label it B. If the colors already have roles, add those too, such as “current background” and “proposed background.” Keeping both the code and its role visible makes it easier to compare results without accidentally swapping the colors.
For a simple exercise, you might record A as #336699 and B as #33669A. The codes have one visibly different character, but looking at the characters alone does not tell you whether the resulting visual difference will matter in your design. Use your own values for the decision you need to make.
Before opening the picker, compare each recorded code with the place you copied it from. Check the entire value, including any characters at the beginning or end. If a code was supplied in a message or specification, preserve the original text until you have finished; retyping a similar value can introduce a change that is hard to spot.
Enter and verify each color
Look at the picker’s available inputs. If it accepts a typed HEX value, enter A and confirm that the value shown matches your note. Then record whatever output you need before replacing it with B. Enter B and check it against your note in the same way. Follow the picker’s own prompts if it asks you to apply or confirm an entry.
If you cannot find a way to type or paste a HEX value, check the tool’s instructions or use a color tool that accepts the values you have. Avoid trying to recreate either color by eye: that would introduce another value into a comparison meant to test the originals.
Keep your notes after entry. They provide a reference if you need to return to A, repeat the comparison or explain which option you selected.
Compare components and appearance
Record what the picker shows
With A selected, note the component labels and values the picker displays, along with any precision it shows. Repeat for B using the same display or settings. A small table in your notes can keep the results aligned:
| Record | Color A | Color B |
|---|---|---|
| Original HEX value | Your first code | Your second code |
| Displayed components | Copy the labels and values | Copy the labels and values |
| Visual notes | Your observation | Your observation |
Compare corresponding components by their displayed labels. Note which values differ and which appear the same. If the tool rounds its display or offers limited precision, treat matching displayed values as a reason to inspect further, rather than proof that the original colors are identical. If component labels or precision are unclear, consult the tool’s guidance before drawing a conclusion from the numbers.
The component comparison helps you describe where the displayed values differ. It does not replace a visual check or tell you on its own whether the difference will be useful to a reader or user.
Look at the colors together
If your picker can display both colors at once, compare A and B side by side. If it handles only one at a time, record each result separately and place two labeled color samples next to one another in a document or design workspace that accepts your exact values. Verify the values in those samples against your notes.
Look for the distinction without changing the labels or the colors between views. First inspect the samples next to each other; then consider how they look when separated. Write down a plain observation, such as “easy for me to distinguish when adjacent” or “difficult for me to tell apart at this size.” These are observations for your comparison, not universal judgments about what everyone will see.
If you cannot create simultaneous samples, switch between the two values and make notes, but treat that as a preliminary check. A side-by-side comparison in the intended design gives you a more useful basis for a decision.
Judge the difference in context
A pair of large samples is a starting point. The more useful question is whether the distinction works where the colors will actually appear. Put A and B into the relevant design, using the same surrounding elements and approximate display size you expect to use. Check the exact values again after placing them.
For adjacent surfaces, inspect the boundary between them. Can you distinguish the areas when that distinction carries meaning? If the boundary is difficult to notice, consider whether a label, outline or other visual cue is also needed. If the surfaces are intended to look continuous, decide whether the visible change is distracting instead.
For alternate interface states, compare examples of each state in the same layout. Ask what a person needs to understand from the change: is color the only indication that the state has changed, or is there also a word, symbol or other cue? If the distinction is important, consider adding a cue that does not depend solely on noticing a small color difference.
Try the conditions that matter
Inspect the colors at the size at which they will appear, alongside the surrounding content. A subtle change may be easier to notice in a large area than in a small detail, so include the actual elements you are deciding about. If the design will appear in more than one setting, review representative examples rather than relying on a single isolated swatch.
You can also ask someone else to compare the labeled examples, especially when the difference communicates a choice or a change of state. Give them the task the design is meant to support, then ask what they noticed. Their response can help you decide whether the distinction is clear enough for the intended use.
Record your decision with the chosen code and its role. For example: “Use A for this background; add a label to distinguish the alternate state.” That note preserves the reason for the choice as well as the value to use.
Check relevant text and background pairs
A visual comparison of A and B answers whether the colors appear different for your purpose. A contrast check answers a separate question about a particular foreground and background pairing. Contrast ratios use relative luminance, so the result should be interpreted for the actual colors being paired, not as a general score for either color alone.
List the combinations that will contain text. If A and B are alternative backgrounds for the same text color, check the text against A and then against B. If each background uses a different text color, check each actual pairing. Include any other text and background combinations that appear in the design rather than assuming that one result covers them all.
Run a separate check for each pairing
- Record the exact text color and the exact background color for the first example.
- Enter those values into the contrast checker, following its input labels and prompts.
- Record the result alongside the pair so you can tell which result belongs to which combination.
- Repeat for every relevant pairing, changing the values to match the design each time.
- If you adjust a color, check the revised combination again and update your notes.
Review the checker’s explanation of its result and any guidance relevant to your use. The intended text and its presentation matter to the decision, so avoid treating a single number copied from another design as a substitute for checking your own pair.
Finally, return to the design with both questions in mind: can the intended color distinction be understood, and have the text and background combinations been checked? A pair of colors may look very similar yet each work differently with a particular text color. Conversely, a contrast result for text does not establish that two adjacent surfaces or alternate states are easy to distinguish. Use the visual comparison, the context review and the separate contrast results together when choosing the final values.