JA EN

Image Accessibility - Writing Alt Text and Understanding Contrast Ratio Standards

· About 9 min read

Why Image Accessibility Matters

Web images are visually-dependent content, and users with visual impairments understand image content through screen readers. Images without appropriate alternative text (alt text) are effectively "non-existent content" for these users. According to WHO statistics, approximately 2.2 billion people worldwide have some form of visual impairment - web accessibility is not accommodation for a minority but addressing a massive user base.

From a legal perspective, image accessibility is increasingly important. In Japan, the revised Act on the Elimination of Discrimination against Persons with Disabilities took effect in April 2024, mandating reasonable accommodation from private businesses. Web accessibility deficiencies risk being judged as "failure to provide reasonable accommodation." In the United States, thousands of web accessibility lawsuits are filed annually under the ADA (Americans with Disabilities Act).

From an SEO perspective, alt text is a ranking factor for image search. Google's image search algorithm uses alt text as a primary signal, and appropriate alt text directly contributes to traffic acquisition from image search. Accessibility and SEO are not opposing goals - correct alt text achieves both purposes simultaneously.

Alt Text Fundamentals and Writing Patterns

Alt text writing follows clear rules. Understanding the basic principles based on WCAG 2.1 guidelines and applying appropriate patterns for different image types is essential.

Basic rules:

Patterns by image type:

Omitting the alt attribute entirely (<img src="...">) versus setting empty alt (<img src="..." alt="">) are completely different. The former causes screen readers to read the filename, severely degrading user experience. Always explicitly set alt="" even for decorative images.

Optimizing Alt Text Based on Context

The optimal alt text for the same image varies depending on the context in which it's used. Consider "what purpose the image serves in its placement" and write descriptions matching that purpose.

Consider a dog photo used in different contexts:

For e-commerce product images, include not just the product name but color, size, material, and other visual information needed for purchase decisions. Instead of "red dress," write "wine red silk long dress, V-neck, below-knee length" so visually impaired users can accurately envision the product.

For charts and diagrams, alt text alone may not convey sufficient information. In such cases, use aria-describedby to associate detailed description text, or place a data table immediately after the figure providing equivalent information in text form.

Image Contrast Ratios and WCAG Standards

Text and important visual elements within images require sufficient contrast ratios. WCAG 2.1 defines the following standards for text contrast:

These standards apply not only to HTML text but also to text contained within images. When text in banner images, infographics, or OGP images is difficult to read due to insufficient background contrast, accessibility standards are not met.

WCAG 2.1's "Non-text Contrast" (Success Criterion 1.4.11) requires 3:1 or higher contrast ratio for UI components and meaningful graphic elements. This includes graph lines and bars, icons, and form borders.

Contrast ratio verification tools:

Proper Handling of Decorative and Background Images

Not all images require alt text. Purely decorative images should be ignored by screen readers to prevent information overload. The criterion for decorative images is: "Would removing this image diminish the page's information or functionality?"

Decorative image handling methods:

An ambiguous case is "atmosphere-conveying photos." For example, an interior photo on a cafe introduction page is information, not decoration. Verbalize the atmosphere the photo conveys: "Relaxed interior featuring wooden counters and warm-toned lighting."

Icon fonts (Font Awesome, etc.) also require attention. When icons carry meaning independently (e.g., trash can icon for delete button), set aria-label="Delete". When used alongside text labels, hide icons with aria-hidden="true" and let screen readers read only the text.

Automated Testing and Continuous Improvement

Manually verifying image accessibility continuously is impractical. Build automated testing tools into CI/CD pipelines to detect issues early.

Issues detectable by automated testing:

Recommended tools:

Some issues cannot be detected automatically. The "quality" of alt text (whether descriptions are appropriate) requires human judgment. Conduct periodic accessibility reviews, actually navigating pages with screen readers to verify image information is correctly conveyed. Include real-device testing with VoiceOver (macOS/iOS) or NVDA (Windows) in pre-release checklists.

Related Articles

OGP Image Optimal Sizes and Creation Guide - Platform-Specific Recommendations

Learn the optimal sizes, aspect ratios, and design tips for OGP (Open Graph Protocol) images across different social platforms. Create beautiful previews for Twitter, Facebook, and LINE.

Image Format Comparison - JPEG/PNG/WebP/AVIF/GIF/BMP Features and Use Cases

Compare technical characteristics of 6 major image formats. Organized comparison of compression methods, color depth, transparency, animation, and browser support with optimal format selection by use case.

Responsive Images Implementation Guide - Complete Guide to srcset, sizes, and picture Elements

Learn how to serve optimal images based on device screen size and resolution with detailed code examples for responsive image implementation.

Complete Image SEO Guide - Boost Search Traffic with Alt Text, File Names, and Size Optimization

Comprehensive image SEO techniques to maximize traffic from image search. Covers alt attribute writing, file naming conventions, structured data, and Core Web Vitals optimization.

Understanding CLIP Model and Image Search Applications

From OpenAI's CLIP architecture to zero-shot classification and building image search systems. Learn multimodal AI fundamentals and practical implementations.

Color Theory for Web Design - From Fundamentals to Practice

Master color theory essentials for web design including color models, palette patterns, contrast ratios, and accessibility compliance.

Related Terms