Skip to content
Back to skills

Contrast Wcag 21 Aa

ASecurity

Sub-skill of elite-frontend-ux: Contrast (WCAG 2.1 AA) (+4).

  • 17 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 9, 2026
developmentgofrontend

Works with

  • cli

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add vamseeachanta/workspace-hub --skill contrast-wcag-21-aa --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Contrast Wcag 21 Aa?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Contrast Wcag 21 Aa
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vamseeachanta-contrast-wcag-21-aa/badge)](https://www.skillsdirectory.com/skills/vamseeachanta-contrast-wcag-21-aa)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: elite-frontend-ux-contrast-wcag-21-aa
description: 'Sub-skill of elite-frontend-ux: Contrast (WCAG 2.1 AA) (+4).'
version: 1.0.0
category: development
type: reference
scripts_exempt: true
---

# Contrast (WCAG 2.1 AA) (+4)

## Contrast (WCAG 2.1 AA)

| Element | Minimum ratio |
|---------|--------------|
| Body text | 4.5:1 |
| Large text (18pt+ or 14pt bold) | 3:1 |
| UI components, icons | 3:1 |
| Focus indicators | 3:1 |


## Touch Targets

- Minimum size: 44×44px
- Minimum spacing between adjacent targets: 8px


## Interactive Elements

- ALL interactive elements MUST have visible focus states
- NEVER use `outline: none` without a replacement
- Tab order must be logical; avoid `tabindex > 0`


## Forms

- Every input MUST have an associated `<label>` (not just placeholder)
- Error messages: use `aria-describedby` to associate with input
- Don't disable submit buttons before first submission attempt
- Use `autocomplete` attributes


## Semantic HTML (first rule of ARIA: don't use ARIA if native HTML works)

```html
<!-- CORRECT -->
<button type="button">Action</button>
<a href="/page">Navigate</a>

<!-- WRONG -->
<div onclick="...">Action</div>
<span class="link">Navigate</span>
```

---

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.