# Accessibility (ADA, Section 508 and WCAG 2.1 AA)

Every form served by hipaaform.ai is built and tested to the Web Content Accessibility Guidelines (WCAG) 2.1, level AA. That is the standard the U.S. Department of Justice names for ADA Title II, the one HHS adopted for Section 504, and the one courts and settlement agreements use when a website is reviewed under the ADA.

Accessibility is a shared responsibility, like HIPAA. This page describes what the form does for you, and what stays with you.

## What every form does, without any setup

### It can be read

- **Contrast is enforced, not suggested.** Text keeps a contrast ratio of at least 4.5:1 against what is behind it, and the edges of fields, options and buttons keep 3:1. If a theme asks for a colour that falls short — pale grey text, a yellow accent on white — the form draws the nearest shade that passes. The colour you chose is stored unchanged; the builder and the API tell you what was adjusted.
- **Nothing depends on colour alone.** Required fields are marked with an asterisk that is explained at the top of the form, errors are written out in words, and links are underlined.
- **Text can grow.** The form reflows down to a 320-pixel-wide screen and up to 200% zoom without sideways scrolling, and it tolerates a reader's own text spacing. Pinch zoom is never disabled.
- **The page declares its language**, so a screen reader uses the right voice. Forms are available in English, Spanish, French, German and Portuguese, including every message the form adds.

### It can be operated

- **Everything works from the keyboard**, in a logical order, with a visible focus outline on every control.
- **Signatures can be typed.** Drawing needs a mouse or a finger, so every signature field offers "Type it instead". A typed signature is stored exactly like a drawn one.
- **Targets are large enough** to hit: fields and buttons are at least 44 pixels tall.
- **Nothing is timed.** There is no time limit on filling in a form, and "save and continue later" is available for long ones.
- **Reduced motion is respected.** Animation and smooth scrolling are turned off for people who ask their device for that.

### It can be understood

- **Every field has a real label**, connected to its control, and help text is announced with it.
- **Groups are announced as groups**: a set of choices, a rating scale, an address or a question grid is read with its question.
- **Errors are specific and announced.** After a failed attempt each problem is described next to its field, tied to it for assistive technology, and focus moves to the first one.
- **Common fields say what they are for** (name, email, phone, address, date of birth), so browsers and password managers can fill them in.
- **Multi-step forms say where you are** ("Step 2 of 4"), and focus moves to the top of each new step.

### It works with assistive technology

- Standard HTML controls are used wherever one exists, so screen readers, voice control and switch devices behave as they do everywhere else.
- The embedded form's frame has a title. Set your own with `data-title` (see [Embed a form](https://app.hipaaform.ai/docs/embed)).
- Windows High Contrast and other forced-colour modes keep the edges, focus outlines and selected states visible.

## How it is tested

Two suites run against the form itself.

- **In a real browser**, with [axe-core](https://github.com/dequelabs/axe-core), against the WCAG 2.0, 2.1 and 2.2 A and AA rules: every template, every field type, on a desktop and on a 320-pixel phone, empty and with errors showing, in another language at 200% zoom with wide text spacing, and under deliberately hostile themes. A separate test completes and submits a form — signature included — using only the keyboard, checking that focus is visible at every step.
- **Without a browser**, the contrast guard is checked against thousands of generated themes: no combination of colours may produce text below 4.5:1 or a field edge below 3:1.

Automated tools catch a large share of accessibility problems but not all of them; the checks above are a floor, not a certificate. If you or a patient find something a form gets wrong, email hello@hipaaform.ai and we will treat it as a defect.

## What stays with you

- **Your words.** Write labels that make sense on their own ("Date of birth", not "DOB?"), keep instructions short, and do not rely on placeholder text to explain a field.
- **Custom CSS.** The theme options are contrast-checked. Custom CSS is applied on top and is not checked: keep contrast at 4.5:1, and do not remove focus outlines, labels or error messages.
- **The plain style.** A form with the plain style is drawn straight onto your page. Its colours are checked against the form background you set, so set that to your page's colour.
- **The page around the form.** We can only vouch for the form. Your own headings, navigation, images and colour choices are part of your website's accessibility.
- **Files and other formats.** If you ask patients to download and upload a document, that document needs to be accessible too.

## For agents and developers

`create_form`, `update_form` and `get_form` on the [MCP server](https://app.hipaaform.ai/docs/mcp) return an `accessibility` object:

```json
{
  "standard": "WCAG 2.1 AA",
  "colors_adjusted": [
    { "setting": "text", "asked": "#DDDDDD", "used": "#727272",
      "why": "#DDDDDD for text does not have enough contrast; #727272 is drawn instead." }
  ],
  "warnings": ["A short text field has no label. Screen readers announce the label, so give it one."]
}
```

An empty `colors_adjusted` and `warnings` means the definition has nothing to fix.
