1. Home
  2. Blog
  3. Web

Web

What Is Web Accessibility (WCAG)? Four Principles, Contrast Math, Audit and Cost Guide

What is web accessibility (WCAG)? Learn the four principles, contrast calculation, keyboard and form rules, audit steps and cost with worked examples.

Contents 14 sections
  1. What Is Web Accessibility (WCAG)?
  2. What Are the Four WCAG Principles and Conformance Levels?
  3. How Do You Calculate Color Contrast?
  4. How Do You Make Images, Headings and Page Structure Accessible?
  5. How Do You Support Keyboard Navigation and Focus?
  6. How Do You Design Form Labels and Error Messages?
  7. When Should You Use ARIA?
  8. How Do You Handle Touch Targets, Motion and Time?
  9. Screen Reader Testing and Automated Scanning: What Does Each Catch?
  10. How Is an Accessibility Audit Run, and What Does It Cost?
  11. How Do You Set Up an Accessibility Program in Six Steps?
  12. What Are Common Web Accessibility Mistakes?
  13. Accessible Websites and Applications with İnovabil
  14. Frequently Asked Questions

A customer tries to fill in your order form with the keyboard and cannot see where the focus is. Another cannot read light gray text on a phone in bright sunlight. A third uses a screen reader and hears "button, button, button" instead of "Submit". What they share is a site that never took them into account. Web accessibility (WCAG) is the set of principles and criteria that make websites and business applications usable by everyone, including people with disabilities.

This guide covers the four core principles, the idea of conformance levels, how to calculate color contrast, rules for keyboards, headings, forms and ARIA, screen reader testing, the limits of automated scanning, how to run an audit, and how to calculate the cost. Example figures are representative; the contrast calculations use the real formula.

Key takeawayAccessibility is not an add-on at the end of a page; it is part of the quality of design and code. The cheapest route is to build components accessibly from the start and embed the checks in your design system. Patching later means fixing the same problem page by page.

What Is Web Accessibility (WCAG)?

WCAG (Web Content Accessibility Guidelines) is the set of web content accessibility guidelines published by the W3C. It breaks the question "is this page accessible?" into measurable criteria: does an image have a text equivalent, is the color contrast sufficient, can every action be completed with a keyboard.

Accessibility is not only for blind users. Permanent disability, temporary situations (a broken arm) and situational limits (bright sun, one-handed phone use) are all affected by the same design decisions. Good accessibility simply means comfortable use for everyone. We covered the wider usability framework in our UX design guide; here we focus on accessibility.

We recommend reading: Our web development service

What Are the Four WCAG Principles and Conformance Levels?

There are four principles: perceivable, operable, understandable and robust. Every criterion belongs to one of them.

PrincipleQuestionExample criteria
PerceivableCan users take in the content through at least one sense?Text alternatives for images, sufficient color contrast, captions for video
OperableCan the interface be used without a mouse?Keyboard navigation, visible focus, large enough touch targets
UnderstandableAre content and operations predictable?Form labels, clear error messages, consistent navigation
RobustDoes it work across browsers and assistive technologies?Valid HTML, correct role and name information

Criteria are grouped into three conformance levels: A is the most basic, AA is the middle level and the target of most organizations, and AAA is the strictest. A whole site is generally not expected to meet AAA. The target level and the version in force should be confirmed against the W3C's current publication and the rules that bind you. For the scope of any obligation and enforcement, consult a legal advisor; this article is not legal advice.

How Do You Calculate Color Contrast?

The contrast ratio compares the relative luminance of the text color and the background color; 1:1 means no difference and 21:1 is black on white. At AA, the commonly cited threshold for normal text is at least 4.5:1, and 3:1 for large text.

The formula has two steps. First each channel (red R, green G, blue B) is divided by 255 and linearized: if the value is 0.03928 or below, use c ÷ 12.92; otherwise ((c + 0.055) ÷ 1.055)2.4. Then relative luminance is L = 0.2126 × R + 0.7152 × G + 0.0722 × B. Ratio = (Llight + 0.05) ÷ (Ldark + 0.05).

Example: #767676 gray text on a white background. All three channels are 118; 118 ÷ 255 = 0.4627, which linearizes to about 0.1812, and because the channels are equal, L ≈ 0.1812. White has L = 1. Ratio = (1 + 0.05) ÷ (0.1812 + 0.05) = 1.05 ÷ 0.2312 ≈ 4.54:1, which passes. A slightly lighter #949494 has L ≈ 0.2961 and a ratio of 1.05 ÷ 0.3461 ≈ 3.03:1; it fails for normal text and only just passes for large text.

Three text colors on white with contrast ratios: light blue 2.46, light gray 3.03, dark gray 4.54
Three color pairs: only the last passes the AA threshold for normal text.
Text color (white background)Relative luminanceRatioNormal text (4.5:1)Large text (3:1)
#28b1e6 light blue0.3762.46:1FailsFails
#949494 light gray0.2963.03:1FailsPasses
#767676 dark gray0.1814.54:1PassesPasses
#16559f navy0.0927.41:1PassesPasses

Two lessons follow. First, approving a color because it "looks readable" is unreliable; screens, lighting and eyesight vary, so verify with the ratio. Second, contrast applies not only to text but also to button borders, icons and focus rings. And information should never be conveyed by color alone (red for error, green for success); add text or an icon.

How Do You Make Images, Headings and Page Structure Accessible?

Screen reader users mostly move through a page using the list of headings and the list of landmarks. If the structure is broken, the page is heard as one long block of text.

  • Text alternatives (alt): The alt text of an informative image describes its function ("Order status: in transit"). For purely decorative images, leave the alt empty (alt="") so the reader skips them. Never use the file name or the word "image" as alt text.
  • Heading hierarchy: One main heading per page, then h2 and h3 in order; no skipped levels, and headings are not chosen just because they render large.
  • Landmarks: Use meaningful HTML elements for header, navigation, main content and footer. A "skip to main content" link spares keyboard users from tabbing through the menu on every page.
  • Link text: Write text that names the destination rather than "click here"; it must make sense when links are read out as a list.

Meaningful structure also helps search engines; we covered the overlap in our SEO guide, but the goal here is usability, not ranking.

How Do You Support Keyboard Navigation and Focus?

The rule is simple: everything that can be done with a mouse must also be possible with the keyboard alone. People with motor limitations, screen reader users and anyone using an assistive device instead of a mouse depend on this path.

  1. Order: Focus moves with the Tab key in an order consistent with the visual and reading order.
  2. Visible focus: The focused element gets a clear outline. Removing the focus ring because it looks "ugly" is the most common mistake; if you remove it, replace it with something better, and give the ring enough contrast with the background.
  3. No traps: When a modal opens, focus moves inside it, Esc closes it, and focus returns to the trigger button.
  4. Right element: Anything clickable should be a button or an a; a div with a click handler does not work by keyboard and carries no role or state.
  5. Shortcuts: If you define single-key shortcuts, users must be able to turn them off; otherwise voice commands or accidental key presses trigger them.

Before each release, put the mouse aside and complete the order flow using only Tab, Shift+Tab, Enter, Space and Esc. Five minutes will reveal most keyboard problems.

How Do You Design Form Labels and Error Messages?

Forms are where accessibility problems cost the most, because they turn straight into lost sign-ups, orders and applications.

  • Persistent label: Every field has a visible label bound with label. A faint placeholder inside the field is not a label; it disappears once the user starts typing.
  • Clear, associated error messages: Write "Phone number must be 10 digits" instead of "Error", bind the message programmatically to the field, and move focus to the invalid field.
  • Color is not enough: Mark an invalid field with an icon and text, not only a red border.
  • Required field marker: State what the asterisk means at the top of the form.
  • Autofill and correct types: When the purpose of a field (name, email, phone) is declared, browsers and password managers can help, and the right keyboard opens on mobile.
  • Time and recovery: Warn before a session times out so users do not lose what they typed.

For dense forms and tables in internal screens, apply these rules together with the principles in our admin panel design guide.

When Should You Use ARIA?

ARIA is a set of extra attributes that tell assistive technologies about roles, states and properties that native HTML cannot express. The rule is one sentence: use a native HTML element first, and add ARIA only when the native element is not enough.

NeedFirst choiceARIA if needed
ButtonbuttonOnly for extra state (e.g. expanded or collapsed)
Form field namelabelName declaration when no visible label exists
Navigation regionnavA name to tell several regions apart
Live message (e.g. "Added to cart")NoneLive region
Custom tab or dropdownA native element if possibleThe full role, state and keyboard behavior

Wrong ARIA can be worse than no ARIA: a wrong role gives the reader wrong information. ARIA only adds meaning; it does not add keyboard behavior. If you assign a role, you must also code that role's expected keyboard interaction.

How Do You Handle Touch Targets, Motion and Time?

  • Touch targets: Small buttons and links cause errors for people with motor limitations or one-handed use. Current WCAG versions define a minimum target size; common design guidance recommends something more generous (around 44 pixels). You can enlarge a bare icon button with inner padding without changing its visible size.
  • Reduced motion: Sliding, spinning and bouncing animations cause dizziness and nausea for some users. The operating system's "reduce motion" preference can be read with prefers-reduced-motion, and the animation can fall back to a simple transition.
  • Flashing: Content that flashes more than three times per second carries a seizure risk; avoid it.
  • Zoom: A page should be readable at 200% zoom and on narrow screens without horizontal scrolling; do not lock text size to fixed pixels.
  • Media: Provide captions for video and, where needed, a transcript; provide a transcript for audio.

Screen Reader Testing and Automated Scanning: What Does Each Catch?

Automated tools quickly find machine-checkable problems such as missing alt text, low contrast and unlabeled form fields. But a tool cannot know whether an alt text is meaningful, whether the focus order is logical, or whether an error message is understandable. It is widely accepted that automated scanning catches only a part of the problems; there is no exact share, and you should not trust a number you have not measured on your own site.

MethodWhat it catchesWhat it misses
Automated scanMissing alt, low contrast, unlabeled fields, invalid structureMeaning of alt text, focus logic, clarity of error messages
Keyboard testFocus order, traps, unreachable elementsWhat the reader announces
Screen reader testReading order, name/role/state, live messagesVisual layout errors

For a screen reader test, turn on a reader, switch the screen off, and listen through the main flow (sign-in, search, order, payment) from start to finish. That is a sufficient first step. We covered the general testing approach in our software testing guide; accessibility checks should be part of that test set.

How Is an Accessibility Audit Run, and What Does It Cost?

An audit means thinking in templates and components, not page by page. The example below is representative: on a 100-page site, an automated scan plus a manual audit of a 24-page sample yields 95 findings.

SeverityFindingsUnit effortEffort
Critical (blocks the task)180.5 person-days9.0
Medium (makes it harder)460.25 person-days11.5
Low (annoying)310.1 person-days3.1
Total9523.6

Add 2 person-days for retesting: 23.6 + 2 = 25.6 person-days. At a daily rate of ₺9,000, 25.6 × ₺9,000 = ₺230,400. Most findings, however, come from a few shared components. Suppose 60% of findings (57) come from 6 shared components: fixing them one by one costs 23.6 × 0.60 = 14.16 person-days, but fixing each component once costs 6 × 1 = 6 person-days. New total: 23.6 − 14.16 + 6 + 2 = 17.44 person-days = ₺156,960.

Payback needs an assumption. Each month 5,000 people start the form and the completion rate rises from 60% to 64% (an assumption, thanks to label and error message fixes). Completed forms go from 3,000 to 3,200, so +200 forms per month; at an expected contribution of ₺150 per form, that is ₺30,000 per month. Payback: ₺156,960 ÷ ₺30,000 ≈ 5.2 months; fixing every finding individually would take ₺230,400 ÷ ₺30,000 ≈ 7.7 months. If the improvement were only +2 points (+100 forms, ₺15,000), payback would be ₺156,960 ÷ ₺15,000 ≈ 10.5 months. The calculation counts only the form effect; other gains are not quantified.

Six steps of an accessibility program: scope, scan, manual test, prioritize, fix, embed in the design system
The six steps of an accessibility program.

How Do You Set Up an Accessibility Program in Six Steps?

  1. Scope and target: Which sites, applications and flows are in scope, and what are the target level and version? Start with critical flows such as order, payment and application.
  2. Automated scan: Scan per template and collect the results in one list.
  3. Manual test: Walk the critical flows with keyboard, screen reader and zoom tests.
  4. Prioritization: Rank findings by whether they block the task and how many pages they affect; put shared-component issues first.
  5. Fix and retest: Fix in the component, repeat the same test and close the finding.
  6. Embed in the design system: Ship a palette verified by contrast calculation; make component keyboard, focus and name information ready-made; run an automated scan on every pull request and put accessibility in the definition of done.

The sixth step is the most valuable: when the palette and components are right from the start, new pages ship with fewer problems on their own. The logic in our test automation article applies here too.

What Are Common Web Accessibility Mistakes?

  • Removing the focus ring: It leaves keyboard users blind.
  • Treating a faint hint as a label: The information disappears once typing starts.
  • Using color alone: A color-blind user may not tell red from green.
  • Relying only on automated tools: A clean scan does not mean "accessible".
We recommend reading: How to build a corporate website
We recommend reading: How to Improve Website Speed: Page Weight Budget, Images, Scripts and Core Web Vitals Guide
We recommend reading: What Is a Design System and How Do You Build One? Tokens, Components, Versioning and Payback
We recommend reading: How to Design and Validate Forms in Business Applications: Fields, Error Messages, Drafts and Payback Guide
We recommend reading: How to Add Structured Data (Schema Markup, JSON-LD): Types, Validation and Payback Guide

Accessible Websites and Applications with İnovabil

At İnovabil our focus is building software from scratch for your company: custom software, web, mobile, e-commerce, CRM, ERP and integration. On our own site we measure a Lighthouse accessibility score of 100; that is an automated measurement, not a claim of WCAG conformance or an accessibility certificate. We recommend writing accessibility expectations into the design and requirements phase, together with the target level and the critical flows, so you proceed with components built right from the start instead of patching later.

We built CRM, purchasing and mobile for Avcılar İnşaat; a purchasing system for İZBAN; logistics and shipment planning with wholesale order management for Karyak; and warehouse management plus a complaint and support management system for Sleepy. Send us a short summary of your site or application goals and we will define the scope together.

We recommend reading: Our software development process: step by step from analysis to launch
We recommend reading: What is custom software?

Frequently Asked Questions

What is web accessibility (WCAG), in short?

It is the set of W3C guidelines that make websites usable by everyone, including people with disabilities. It rests on four principles (perceivable, operable, understandable, robust) and includes criteria at levels A, AA and AAA.

What does AA level mean, and which level should I target?

AA is the middle level most organizations target; it includes criteria such as 4.5:1 contrast for normal text. The target level and the scope of any obligation depend on your sector and regulations; confirm them with your legal advisor and the W3C's current publication.

Is an automated scanning tool enough?

No. Automated tools find problems such as missing alt text and low contrast, but cannot judge focus order, the meaning of alt text or the clarity of error messages. Manual testing with a keyboard and a screen reader is essential.

How do you check the color contrast ratio?

Calculate the relative luminance of the text and background colors and apply (Llight + 0.05) ÷ (Ldark + 0.05). The commonly cited threshold for normal text is at least 4.5:1; for example, #767676 on white gives about 4.54:1.

Is it cheaper to add accessibility later or build it in from the start?

Building it in from the start. In the example most findings came from shared components, so fixing a component once cost less than patching page by page (₺156,960 versus ₺230,400). Embedding checks in the design system keeps lowering that cost.

Let's talk about your project

Tell us briefly about the software you have in mind; we'll listen and prepare a tailored roadmap and proposal.

Get a quote