Skip to content
Back to Blog

Web Accessibility and Images: WCAG Guidelines Explained

January 28, 2026
13 min read

Make your images accessible to all users with this comprehensive guide to WCAG compliance. Learn about alt text, color contrast, and screen reader best practices.

Joseph Hamawi

Joseph Hamawi

Founder, Kode Foundry · January 28, 2026

Builds browser-based image and PDF tools at Pixly, the consumer brand of Kode Foundry LTD. Privacy-first by default — files are processed in your browser, not on a server.

Why Image Accessibility Matters

Approximately 1 billion people worldwide live with some form of disability. When images lack proper accessibility features, these users miss crucial information, face frustrating barriers, and may be unable to complete important tasks.

Beyond serving users with disabilities, accessible images benefit everyone: users on slow connections who disable images, those using voice assistants, people searching for content, and users in environments where they can't view screens.

Accessibility isn't charity, it's good design that serves all users better.

Understanding WCAG Guidelines

The Web Content Accessibility Guidelines (WCAG) are the international standard for web accessibility. Currently at version 2.2, these guidelines are organized around four principles (POUR):

Perceivable: Information must be presentable in ways users can perceive.

Operable: Interface components must be operable by all users.

Understandable: Information and operation must be understandable.

Robust: Content must be robust enough to work with various assistive technologies.

WCAG defines three conformance levels:

  • Level A: Minimum accessibility (basic requirements)
  • Level AA: Addresses major barriers (recommended target)
  • Level AAA: Highest accessibility (aspirational for most sites)

Alt Text: The Foundation of Image Accessibility

Alternative text (alt text) provides a textual description of images for users who cannot see them. It's the single most important accessibility feature for images.

When Screen Readers Encounter Images: They announce "image" followed by the alt text. Without alt text, they may read the filename, skip the image entirely, or announce "image" with no description.

How to Write Effective Alt Text:

Be Concise but Complete: Describe the image's content and function in roughly 125 characters or less.

Focus on Purpose: Why is this image here? What information does it convey?

Skip "Image of" or "Picture of": Screen readers already announce it's an image.

Include Text in Images: If an image contains text, include that text in the alt attribute.

Context Matters: The same image might need different alt text depending on its purpose on the page.

| Image Type | Alt Text Approach | Example | |-----------|-------------------|---------| | Informative | Describe the content | "Chart showing 50% increase in sales from Q1 to Q4" | | Functional | Describe the function | "Submit form" (for a submit button image) | | Decorative | Empty alt (alt="") | Pure design elements with no meaning | | Complex | Brief alt + long description | "Sales data chart. See full description below." | | Text image | Include the text | "Company motto: Quality First" |

Common Alt Text Mistakes:

  • alt="image" or alt="photo" (meaningless)
  • alt="IMG_4523.jpg" (filename instead of description)
  • Overly long descriptions that overwhelm users
  • Missing alt attributes entirely
  • Using identical alt text for different images

Decorative vs. Informative Images

Distinguishing between decorative and informative images is crucial:

Decorative Images: Add visual interest but convey no information. Examples include:

  • Background patterns and textures
  • Spacer images
  • Purely aesthetic graphics
  • Icons that duplicate adjacent text

Approach: Use an empty alt attribute: alt="". This tells screen readers to skip the image entirely. Don't omit the alt attribute, use an empty one.

Informative Images: Convey information, emotion, or serve a function. Examples include:

  • Product photos
  • Charts and graphs
  • Instructional images
  • Portraits with emotional content
  • Images that add meaning to text

Approach: Provide meaningful alt text that conveys the image's information or purpose.

The Test: If you removed the image, would the page lose meaning? If yes, it's informative and needs descriptive alt text.

Color Contrast Requirements

WCAG specifies minimum contrast ratios to ensure text and UI components are visible:

Text Contrast (Level AA):

  • Normal text: 4.5:1 minimum contrast ratio
  • Large text (18pt+ or 14pt+ bold): 3:1 minimum

Text Contrast (Level AAA):

  • Normal text: 7:1 minimum contrast ratio
  • Large text: 4.5:1 minimum

Non-Text Contrast (Level AA):

  • UI components and graphical objects: 3:1 minimum
  • Applies to icons, chart segments, form controls

Checking Contrast: Use tools like WebAIM's Contrast Checker, browser dev tools, or design software plugins to verify ratios.

Images with Text Overlays: Text placed over images must maintain sufficient contrast. Solutions include:

  • Solid or semi-transparent background behind text
  • Text shadow for improved readability
  • Gradient overlays to darken/lighten image areas
  • Careful image selection to ensure natural contrast

Images of Text

WCAG 1.4.5 recommends avoiding images of text except when:

  • The text is part of a logo
  • The presentation is essential (specific typography is meaningful)
  • The text is customizable

Why Avoid Images of Text:

  • Cannot be resized without pixelation
  • Cannot be selected, searched, or translated
  • Styling cannot be adjusted by users
  • Increases page weight unnecessarily

When You Must Use Images of Text: Provide the same text content in the alt attribute.

Complex Images and Long Descriptions

Some images contain more information than fits in a brief alt text:

Complex Images Include:

  • Charts and graphs
  • Diagrams and flowcharts
  • Maps with multiple data points
  • Infographics

Approaches:

Adjacent Text: Place a detailed description in visible text near the image.

Long Description Link: "Full description of chart" linking to detailed text.

figure and figcaption: Semantic HTML that associates captions with images.

aria-describedby: Links the image to a more detailed description element.

Example for a Chart:

  • Alt text: "Bar chart comparing quarterly sales, with Q4 highest"
  • Long description: "Quarterly sales comparison: Q1: $150,000, Q2: $175,000, Q3: $200,000, Q4: $275,000, showing 83% growth year-over-year."

SVG Accessibility

SVG images require special consideration:

Inline SVG:

  • Add role="img" to the svg element
  • Include a title element as first child
  • Add aria-labelledby referencing the title
  • For complex SVGs, include desc element

SVG via img tag: Use alt attribute normally.

Icon SVGs: If decorative, aria-hidden="true". If functional, use aria-label.

Color-Blind Considerations

Approximately 8% of men and 0.5% of women have some form of color blindness:

Don't Rely on Color Alone: Use additional indicators, patterns, labels, icons, to convey information.

Common Problematic Combinations:

  • Red/green (most common deficiency)
  • Green/brown
  • Blue/purple
  • Red/brown

Chart and Graph Considerations:

  • Use patterns in addition to colors
  • Add data labels directly on elements
  • Ensure legend items are distinguishable
  • Test with color blindness simulation tools

Status Indicators: Don't use only color to indicate success/warning/error. Add icons, text, or patterns.

Responsive Images and Accessibility

Responsive image techniques should maintain accessibility:

srcset and sizes: Alt text applies to all versions, only one alt needed.

picture element: Apply alt to the img element inside.

CSS background images: Cannot have alt text, ensure any important images are HTML img elements.

Testing Image Accessibility

Automated Testing:

  • WAVE Web Accessibility Evaluator
  • axe DevTools browser extension
  • Lighthouse accessibility audits
  • These catch missing alt attributes and some contrast issues

Manual Testing:

  • Navigate with a screen reader (NVDA, VoiceOver, JAWS)
  • Disable images and check if content is understandable
  • Use browser dev tools to inspect alt text
  • Test with color blindness simulation

Questions to Ask:

  1. Does every image have an alt attribute?
  2. Is the alt text meaningful (not "image" or a filename)?
  3. Are decorative images properly marked with empty alt?
  4. Is text over images readable?
  5. Can information be understood without color?

Common Patterns and Solutions

Product Images: Describe the product, including relevant details (color, style) that inform purchase decisions.

Team/Staff Photos: Include the person's name and role.

Screenshots: Describe what's being shown and why it matters.

Icons: If standalone, provide alt text. If paired with text, consider decorative.

Charts: Brief alt text + adjacent detailed description.

Maps: Describe what the map shows; provide text alternatives for locations.

Legal and Business Considerations

Accessibility requirements increasingly carry legal weight:

Regulations: ADA (US), Section 508 (US federal), EAA (Europe), AODA (Canada), and others mandate accessibility.

Lawsuits: Web accessibility lawsuits have increased significantly. Most settle, but costs are substantial.

Business Benefits: Accessible sites often rank better in search, serve more customers, and demonstrate social responsibility.

Conclusion

Image accessibility isn't a separate concern to address after design, it's an integral part of good web design. When you write alt text, check contrast, and consider how all users experience your images, you create better experiences for everyone.

Start with the fundamentals: meaningful alt text for informative images, empty alt for decorative images, and sufficient contrast. Build accessibility into your workflow rather than treating it as an afterthought.

The goal is simple: ensure that every user, regardless of how they access your content, can understand the information your images convey.

Ready to Convert Your Images?

Fast, secure, and completely free. Try our converter now!

Start Converting

Related Articles