Most color arguments in a design review are really three arguments wearing one coat. Someone loves a blue, someone else says it is unreadable, and a third person wants it brighter for the button. The blue is not the problem. One color is being asked to do three different jobs, and each job is judged by a different test.
Text, background and accent are separate decisions. Text passes or fails on contrast. A background is judged by what it does to everything placed on top of it. An accent is judged by eye, tuned until it feels right, and then pinned down exactly. The free Color Picker on Ovatly supports all three tests, because it shows one color in HEX, RGB and HSL together with its contrast ratios against black and white.
Contents
- Quick answer
- Three roles, three different tests
- Text: the pair decides, not the swatch
- Backgrounds: read the verdicts in reverse
- Accents: tune in HSL, record in HEX
- How to pick the three roles, step by step
- Worked example: one blue, three verdicts
- Limitations and honest tradeoffs
- Common mistakes
- FAQs
- Conclusion
Quick answer
Pick each role by its own test. For text, enter the candidate in the Color Picker and read its contrast against its background: the picker reports the ratio against black and against white, and normal text needs 4.5:1 to pass WCAG AA. For a background, read those verdicts in reverse, asking what the color does to text placed on it. For an accent, hold the hue in HSL, tune saturation and lightness by eye, then record the result in exact HEX. If your background is a color rather than black or white, check the pair in the Color Contrast Checker instead.
Three roles, three different tests
A text color has one job: to be read, which makes it the only role with a hard numerical test. A background is the surface everything else sits on, so it is measured by the room it leaves for text and accents. An accent exists to draw the eye in small doses, on buttons, links and highlights, so it is judged by feel and then recorded precisely so it can be reproduced.
Text: the pair decides, not the swatch
No text color is readable or unreadable by itself. Readability belongs to the pair: this text on that background. That is why the picker shows not just the color, but its contrast ratio against black and against white.
Take the blue #2563EB. Against white it measures 5.17:1, which passes the WCAG AA minimum of 4.5:1 for normal text. Against black it measures 4.06:1, which does not pass. The swatch never changed; the verdict flipped because the partner changed. So the correct question is never "is this a good text color?" but "is this a good text color on the background it will actually sit on?"
Backgrounds: read the verdicts in reverse
A background color is tested by the same numbers, read from the other side. If its contrast figures tell you that your main text colors will struggle on it, the background is wrong no matter how good it looks empty.
Light backgrounds give the widest choice of text colors, because dark text on a light surface easily clears 4.5:1. Dark backgrounds narrow the choice: text must be light enough to pass against them, and mid-tone colors that looked safe on white, like the blue above at 4.06:1 on black, quietly fail. Colored backgrounds narrow it further, because the pair is no longer text against a neutral.
Accents: tune in HSL, record in HEX
Accents are the one role where the eye leads. An accent needs to belong to the palette while still standing out from it, and that is a judgement of small adjustments: a little more saturation, a step lighter, a step darker.
HSL is built for exactly this. It describes a color as hue, saturation and lightness, so you can hold the hue steady and tune the other two until it sits right. HEX offers no handles for this; changing a HEX digit changes the color in ways you cannot predict by eye.
Once the accent feels right, record it in HEX or RGB: the picker's HSL values are rounded to whole numbers, while HEX and RGB are always exact. HSL is the workshop; HEX is the archive.
How to pick the three roles, step by step
- Open the Color Picker and settle the background first, checking how much room its contrast figures leave for text.
- Choose the text color against that background. Read each candidate's ratio against black or white, whichever matches your background, and keep only candidates that clear 4.5:1 for normal text.
- If the background is a color rather than black or white, take the surviving pairs to the Color Contrast Checker and test the exact combinations there.
- Tune the accent in HSL: hold the hue, and adjust saturation and lightness until the accent stands out without clashing.
- Write the final three colors down in HEX. That is the record you hand to a developer or your future self.
Worked example: one blue, three verdicts
Run #2563EB through the picker and you get one color in three notations: rgb(37, 99, 235) and hsl(221, 83%, 53%).
As text on white, it passes: 5.17:1 against the 4.5:1 AA line for normal text. As text on black, it fails: 4.06:1. As a background, the same figures read in reverse say that white text on this blue passes at 5.17:1 while black text on it fails at 4.06:1. As an accent, the HSL reading is the useful one: hue 221 is the identity to hold, and saturation 83% and lightness 53% are the dials for making it punchier or calmer.
The tool says it plainly: this blue belongs on light backgrounds. One color, three roles, and the numbers assign it to the roles it can actually do.
Limitations and honest tradeoffs
The picker checks contrast against black and white only. That covers plain pages and dark themes, but the moment a background is itself a color, the pair has to be tested in the Color Contrast Checker, which accepts any background.
The picker also reports HSL rounded to whole numbers. That is fine for tuning by eye, but the final record of any color should be its HEX or RGB value, which the tool always gives exactly.
Finally, passing 4.5:1 is a floor, not a guarantee of comfortable reading. Typeface, size and weight still matter, and no single number in the picker settles those.
Common mistakes
- Picking a text color because the swatch looked good. The pair decides. Test the candidate against its actual background.
- Choosing the background last. Text options shrink or grow with the background. Settle the surface first, then choose text that passes on it.
- Using one mid-tone color for everything. A color that fails as text on black may be a fine accent. Assign roles by test results, not by loyalty to a favorite swatch.
- Tuning an accent in HEX. HEX digits do not map to anything the eye can steer by. Tune in HSL, then convert and record the result in HEX.
FAQs
Why can't I judge a text color from the swatch alone? Because readability is a property of the pair, not the single color. The Color Picker shows the contrast of one color against black and against white. The blue #2563EB passes on white at 5.17:1 and fails on black at 4.06:1, so the same swatch is a good text color on one background and a poor one on the other.
What contrast ratio does normal text need? WCAG AA asks for 4.5:1 for normal text. The picker shows each color's ratio against black and against white next to the value, so you can check a candidate text color against that 4.5:1 line before you commit to it.
Why tune an accent color in HSL instead of HEX? HSL is the adjust-by-eye notation: you hold the hue steady and tune saturation and lightness until the color feels right. HEX gives you no such handles. Once the accent looks right, record it in HEX, because HEX and RGB are always exact while HSL is rounded to whole numbers.
My background is a color, not black or white. How do I check text on it? Use the Color Contrast Checker, which measures a text color against any background color you give it. The Color Picker only reports ratios against black and white, which covers plain pages but not colored sections, cards or banners.
Is the HSL value as exact as the HEX value? No. In the Color Picker, HSL values are rounded to whole numbers, while HEX and RGB are always exact. Use HSL while you are exploring and adjusting, then store and hand over the final color as HEX or RGB.
Conclusion
Separate the roles and each decision gets easier: text is tested by contrast against its real background, backgrounds are read in reverse for the room they leave, and accents are tuned in HSL and archived in HEX. The Color Picker runs all three tests on one page. When the same palette has to survive print, our sibling guide on converting RGB to CMYK for printing covers the conversion and its limits. For more guides in this series, see the Color and Design Tools guides.