A beautiful palette does not automatically make a readable graphic. Two colors can feel harmonious yet be almost impossible to distinguish when used for small text. Start with the text and background, then add decorative colors after the essential message is legible.
Give each color a role
A reliable graphic can use a dark text color, a light background, one accent and one softer supporting color. For example, a short tutorial card can use a pale neutral background, a midnight headline and a teal accent on a small label. You do not need to give all five colors equal visual weight.
Use the Color Palette Generator to select a base color and explore analogous, complementary or monochrome variations. The tool generates colors; it does not certify accessible contrast.
Compare actual contrast
The WCAG minimum contrast criterion for web content uses 4.5:1 for ordinary text and 3:1 for qualifying large text, with specified exceptions. These thresholds are also a useful design reference for graphics, although meeting a color ratio alone is not a complete accessibility assessment.
| Text | Background | Contrast | Ordinary text reference |
|---|---|---|---|
| #0F172A | #FFFFFF | 17.85:1 | Meets 4.5:1 |
| #0F766E | #FFFFFF | 5.47:1 | Meets 4.5:1 |
| #A7F3D0 | #FFFFFF | 1.28:1 | Below 4.5:1 |
| #FFFFFF | #0F766E | 5.47:1 | Meets 4.5:1 |
These ratios are calculated from the listed solid sRGB colors. A gradient or photograph changes the background behind individual letters. For text over a photograph, add a solid backing or sufficiently opaque overlay, then test the resulting contrast.
A practical palette exercise
Create a simple card with the headline 'Three ways to resize an image.' Use #0F172A on #FFFFFF for the headline and #0F766E on #FFFFFF for the accent. Reserve a pale mint fill for a background or border rather than using it as small text on white. Check the same graphic on a small phone and in grayscale. If hierarchy disappears, adjust brightness and size, not just hue.
Keep meaning independent of color
Don't distinguish good and bad results using red and green alone. Pair each color with a clear word, icon or shape. Avoid tiny captions that require zooming. For mixed backgrounds, place the most important words in a consistently readable region.
Can complementary colors be readable together?
Yes, but their hue relationship says nothing about luminance contrast. Measure the specific foreground and background pair and inspect the intended design size.
Further reading
W3C WAI: Understanding Contrast (Minimum)
Stopover Tools guide. Editorial policy · Explore all tools.