Color and composition
Choose a background that leaves room to read
Keep decoration useful by testing it with real text, checking contrast, and giving long passages a calm surface.
Give the background a job
A pattern can introduce a page, frame an image, or connect separate sections. Choose one of those jobs before placing it behind a paragraph. For an illustrative event page, checks might work around the outside of a plain information card. For a short cover, larger dots might occupy most of the space. The useful question is whether the reader can find the title, understand the message, and locate the next action.
Begin with actual words. A short sample heading can hide problems that appear when a real title wraps onto three lines.
Keep the reading surface predictable
Try a solid panel for the main text, with the pattern visible around it. Give that panel enough inner space that letters do not seem to press against the decorative edge. This makes the background beneath each line predictable and lets you adjust the pattern without changing the text's immediate surroundings.
If you want words directly over a pattern, test the whole arrangement. A dark line crossing a dark letter can damage its shape. W3C's background-image failure guidance checks the parts behind the text that provide the least contrast, rather than an average color across the image. W3C: Background images and text contrast
Measure the colors that actually meet
For ordinary text, WCAG 2.2's minimum contrast criterion specifies at least 4.5:1. Qualifying large text requires at least 3:1; the large-text definition generally starts at 18 points, or 14 points when bold. Use the actual text and background colors, and do not round a failing result up to a passing threshold. W3C: Contrast (Minimum)
On a two-color background, check the text against each color that can fall behind it. If a translucent panel or overlay changes those colors, evaluate the resulting combination. A good contrast result is one check within a larger review; it does not certify a whole layout or guarantee that every reader will find it comfortable.
Quiet the decoration before shrinking the words
When a composition feels crowded, first try reducing the pattern's footprint, moving it to the margins, or choosing two background colors that are closer together. Keep enough contrast between the text and its own surface. Compare the revised version with the original using the same content. Resist changing the heading, palette, spacing, and pattern all at once: you want to see which adjustment helped.
A pattern can also belong in a single opening panel. Repeating it across every section is a choice, not a requirement for consistency.
Review the whole reading experience
Resize the page and increase browser zoom. Check whether titles wrap cleanly, buttons remain visible, and paragraphs can be read without chasing their ends sideways. W3C's reflow guidance addresses preserving content and function as the available viewport becomes narrow, including a 320 CSS-pixel width for typical vertically scrolling content. W3C: Reflow
Keep meaning separate from decoration. If two patterned cards represent different categories, give them visible names. Color must not be the only visual clue carrying information. Purely decorative CSS backgrounds should also be dispensable: the page's message should remain when they disappear. W3C: Use of Color and W3C: Decorative CSS images
Finish by reading the page, including its smallest labels, at the sizes people will encounter. Choose the background that lets the content do its job.