How to Make an Accessible Website
by Sarah Yukino Nakada ⦁ Jan 8, 2024
-
Color
-
Contrast Ratio: It’s the contrast between the text and background color values, it ensures readability, especially for people with color deficiency.
- It’s calculated by dividing the lighter value by the darker value.
- The values range from 0 to 1, where 0 is black and 1 is white.
- The exact formula is (V1 + 0.05) / (V2 + 0.05). Lighter / Darker.
- Contrast ranges from 0 to 21, the 0.05 is to prevent dividing by 0.
-
Contrast Levels: Defined by the WCAG standards.
- Failing: Less than the minimum AA.
- AA: Should be 4.5 for normal text or 3 for large text.
- AAA: Should be 7 for normal text or 4.5 for large text.
- Large text: 18pt+ for regular and 14pt+ for bold.
-
Dark Mode: To avoid light sensitivity, eye strain and migraines.
-
High-Contrast Theme: Themes with a black background and neon colors.
-
Technique: Turn your colors into grayscale and see if it’s still readable.
-
-
Semantic HTML