Apps & websites guidance
The European Accessibility Act (EAA) states that: ‘to maximise the foreseeable use by persons with disabilities … information should be presented at adequate size, sufficient contrast, suitable shape … and should provide for flexible ways of improving vision clarity' (among many other requirements).
This page provides detailed guidance for text within apps and websites, giving more detail for each of the emboldened keywords in the above text from the EAA, as follows:
- Summary of guidelines for website text
- Adequate size
- Sufficient contrast
- Suitable shape for body paragraphs of text
- Suitable shape for individual words and short phrases
- Line spacing, paragraph spacing and padding
- Providing flexible ways to access digital content
- Styling hyperlinks within paragraphs
- Calculating the ratio of x-height to font size (with examples)
Furthermore, the EAA requirement to consider the ‘foreseeable conditions of use’ is discussed in the page titled Testing with users.
Summary of guidelines for website text
Guidelines for continuous paragraphs of text
Guidelines for individual words and short phrases
Any combination of styling options can be used, but the outcome should be at least as readable2 as lowercase regular-weight high contrast Arial text at the required size. For more detail on how to test this, see the panel titled Suitable shape for individual words and short phrases (further down this page).
Footnotes
- The font size that is needed to achieve the required x-height is different for every font. Furthermore, the minimum size for images of text is bigger than the size required for html text. For further details see the panel titled Adequate size (which is the next one on this page).
Adequate size
In order to define an appropriate font size for text in apps and websites, it is important to realise that the apparent size of text on a screen depends on both the font size and the ratio of the x-height to the font size. This ratio is different for every font, and can be measured using the procedure in the panel titled Calculating the ratio of x-height to font size (further down this page). This ratio is 0.518 for Arial text, but for Times New Roman it’s 0.447.
The latest version (v4.1.1) of EN301549 provides the following definitions for adequate text sizes:
- For html text that can be resized and reflowed, the default x-height should be at least 8 CSS px. For each font family, the default font-size should therefore be at least 8 divided by the ratio of x-height to font size. The minimum font size for Arial text is 15.4 CSS px, but for Times New Roman text it’s 17.9 CSS px.
- For images of text, or any text that can’t be resized (without requiring horizontal scrolling), the x-height should be at least 16 CSS px. For each font family, the font size should therefore be at least 16 divided by the ratio of x-height to font size. The minimum font size for Arial text is 30.8 CSS px, but for Times New Roman text it’s 35.8 CSS px.
Some examples of the required font-sizes for some common font-families are given in the panel titled Calculating the ratio of x-height to font size (further down this page).
Compliant example: The text in this sentence is Arial with a font size of 15.4 CSS px. The next paragraph is Arial with a font size of 12 CSS px, which is not compliant.
Non-compliant example: The text in this sentence is Arial with a font size of 12 CSS px.
Compliant example: The text in this sentence is Times New Roman with a font size of 17.9 CSS px. The next paragraph is Times New Roman with a font size of 15.4 CSS px, which is not compliant.
Non-compliant example: The text in this sentence is Times New Roman with a font size of 15.4 CSS px.
For body paragraphs of text, the minimum Arial font size is 15.4 CSS px, but for Times New Roman it is 17.9 CSS px.
Sufficient contrast
The latest version (v4.1.1) of EN301549 requires a contrast ratio of 4.5:1 for normal-sized text, and 3:1 for large sized text.
However, evidence1 suggests the contrast ratio is too lenient for black text on coloured backgrounds, but also unnecessarily fails white text on coloured backgrounds.
The Accessible Perceptual Contrast Algorithm (APCA) is proposed as a better method for evaluating contrast, using the following thresholds2:
- For body paragraphs of text, the APCA contrast difference should be between 60 and 90. This helps people achieve their maximum reading speed, without causing headaches for people who are sensitive to high contrasts. If the background is white, then the text colour should usually be between RGB(75,75,75) and RGB(142,142,142).
- For individual words or short phrases, the combination of text size, contrast and style should be at least as readable as lowercase regular-weight high contrast Arial text at the required size. For more information on how to test this, see the panel titled Suitable shape for individual words and short phrases (further down this page).
The APCA algorithm is a simplified model that predicts how text and background colours are typically perceived on display screens. Text should additionally be checked by testing with real users, because the simplified model doesn’t account for Colour Vision Deficiency, or the actual screen brightness or ambient lighting. Colour Vision Deficiency can also be simulated within the freely available DaltonLens Color Blindness Simulator, and also within PhotoShop (using View > Proof Setup > Colour Blindness - Protanopia).
Examples
Compliant example: The colour of the text in this paragraph is RGB(75,75,75), which has an APCA contrast difference of 90. The next paragraph is non-compliant because the contrast is too low &emdash; it uses RGB(187,187,187) for the text, which has an APCA contrast difference of 37
Non-compliant example: The contrast of the text in this paragraph is too low. It uses RGB(187,187,187) for the text, which has an APCA contrast difference of 37.
Non-compliant example: The contrast of the text in this paragraph is too high, which may cause headaches for some people. This paragraph uses RGB(0,0,0) for the text, which has an APCA contrast difference of 106.
For body paragraphs of text, the APCA contrast difference should be between 60 and 90. Text is slower to read if there’s not enough contrast, but very high contrasts can cause headaches for some people.
Examples of common words
Compliant specification for size and contrast
navy dish
data gets
use west
These random 3 and 4 letter words are all compliant examples for individual words and short phrases, because the CamCAST experiments indicate that they are equally as readable as lowercase regular-weight high contrast Arial text at 15.4 CSS px (which is the required size for HTML text). For more information on how to test this, see the panel titled Suitable shape for individual words and short phrases (further down this page).
Footnotes
- The different methods for calculating contrast are discussed further in the article titled Does the contrast ratio actually predict the legibility of website text?
- The APCA contrast threshold of 60 was derived from the ‘bronze level’ section of apcacontrast.com.
Suitable shape for body paragraphs of text
The latest version (v4.1.1) of EN301549 doesn’t include any direct guidelines for the default presentation of text needed to meet the EAA's 'suitable shape' requirement. However, the latest provisional draft (2026) of the EAA harmonised standard for print’s does include guidance for body paragraphs of text, which can be interpreted for websites as follows:
- Uppercase text should not be used for entire paragraphs of text, because uppercase words have much less distinctive shapes than lowercase words. This means the eye has to discriminate the individual letters to determine what each word is, and this is much slower. Particular words within a paragraph may be capitalised for emphasis, but it’s usually better to increase the font weight and/or change the colour instead.
- The font-weight used for entire paragraphs of text should be between Open Sans Regular and Open Sans Semibold. Heavier font weights may be used sparingly for emphasis.
- Stylised fonts (such as condensed, underlined, cursive, italicised or outlined) should not be used for entire paragraphs of text.
- Underlined text may be used sparingly to make hyperlinks distinctive when they are inside paragraphs of text, but this does make the words harder to read. Changing the font-family, font-weight and colour of the text is recommended as a better approach for making hyperlinks distinctive, as discussed in the panel titled Styling hyperlinks within paragraphs (further down this page)
Compliant example: This paragraph is written in sentence case Open Sans, which is recommended as best practice. Sentence case means that the first letter of the sentence is capitalised, but everything else is lowercase.
NON-COMPLIANT EXAMPLE: THIS ENTIRE PARAGRAPH IS WRITTEN IN UPPERCASE TEXT (ALSO CALLED ALL CAPS). UPPERCASE TEXT IS NOT RECOMMENDED FOR ENTIRE PARAGRAPHS OF TEXT, BECAUSE THE WORDS HAVE LESS DISTINCTIVE SHAPES, WHICH MAKES THEM SLOWER TO READ.
Non-compliant example (font-weight too thin): This sentence is Open Sans Light, which is slower to read, because the strokes within the letters are harder to see.
Non-compliant example (font-weight too thick): This sentence is Open Sans Extrabold, which shouldn’t be used for entire paragraphs of text, because it means that bold text can no longer be used for emphasis.
Non-compliant example (Font is too condensed):This sentence is Open Sans Condensed, which is slower to read, because the vertical strokes within the letters form patterns that are more stripey, which means the eyes finds is harder to move along from one word to the next, and the reader is more likely to get a headache.
Non-compliant example (Underlined): This entire sentence is underlined, which is slower to read, because the underline gets in the way of letters that have descenders, like g, j, p, q, and y
Non-compliant example (Italics): This entire sentence is italicised, which is slower to read because the strokes are thinner and the words make shapes that are slightly different to what readers are used to.
Non-compliant example (decorative font): This paragraph is written in a font called Style Script, which is a decorative font that looks like stylish handwriting. This usually makes the text harder to read (compared to a plain font of an equivalent size).
Non-compliant example (outlines around text): The text in this paragraph has an outline around it that’s a different colour. These outlines usually make the text harder to read.
Entire paragraphs of text shouldn’t be capitalised, ultra-light, bold, condensed, underlined or italicised, and shouldn’t use decorative or outlined fonts.
Suitable shape for individual words and short phrases
Individual words and short phrases occupy a much smaller proportion of the page than body paragraphs of text. The text can therefore be larger, so a much wider variety of font weights and styles can be used, while still ensuring the text is easy to read at a glance.
The latest version (v4.1.1) of EN301549 doesn’t include any direct guidelines for the default presentation of text needed to meet the EAA's 'suitable shape' requirement. However, the latest provisional draft (2026) of the EAA harmonised standard for print includes requirements for individual words and short phrases, which can be interpreted for websites as follows: Whatever combination of styles is used for individual words and short phrases, the outcome should be at least as readable as regular-weight lowercase high contrast Arial text, at 15.4 CSS px (for resizeable text), or 30.8 CSS px (for images of text).
Given a particular font name, font weight, viewing distance, foreground colour, background colour and use case scenario, the results of the CamCAST experiments can be used to estimate the font size required to ensure that the text is at least as readable as normal-weight lowercase high contrast Arial text. This functionality is currently available within a macro-enabled Excel spreadsheet, and an InDesign plug-in is under development. If you would like to find out more about this functionality, contact edc-toolkit@eng.cam.ac.uk.
Furthermore, a tool called Rhino can automatically check if text within an image is at least as readable as normal-weight lowercase high contrast Arial text. Rhino was developed by Neem and the Inclusive design toolkit team.
Rhino uses optical character recognition to determine the character height, font weight, foreground and background colours, and then calculates the Potential Glance Inclusion (PGI) by interpolating the CamCAST experimental data in multiple dimensions. If you would like to find out more about this tool, use the Neem contact page to book a demo.
The Cambridge Contrast And Size Tests (CamCAST) are a set of experiments that measured the glance readability performance of common 3 and 4 letter words, for various contrast levels and font weights, and separately for uppercase and lowercase words. The results from the CamCAST experiments can be used to determine whether text is at least as readable as regular-weight lowercase high contrast Arial text.
Line spacing, paragraph spacing and padding
Lines of text in a paragraph should be neither too close together nor too far apart. Lines that are too close together are hard to read because the lines above and below the current line give unwanted visual crowding. However, if the lines are too far apart, then the text does not look like a cohesive paragraph.
The latest version (v4.1.1) of EN301549 doesn’t include any direct guidelines for the default presentation of line spacing, paragraph spacing or padding. However, the latest provisional draft (2026) version of the EAA harmonised standard for print includes guidance for body paragraphs of text, which can be interpreted for websites as follows:
- Within a single paragraph of text, the baseline-to-baseline spacing should be 2.5 times the x-height. In order to achieve this, the CSS line-height should be 2.5 times the ratio of x-height to font size. This is different for every font, as discussed within the panel titled Calculating the ratio of x-height to font size (further down this page). For Arial the ratio of x-height to font size is 0.518, so the CSS line-height1 should be 1.3.
- Between one paragraph of text and the next, the baseline-to-baseline spacing should be 3.75 times the x-height. In order to achieve this, the margin-bottom for the paragraph (in em units2) should be set equal to 1.25 times the ratio of x-height to font size. For Arial the CSS margin-bottom should be 0.65em. This amount of space could also be achieved by many other combinations of top and / or bottom padding and / or margin.
- The amount of clear space between the visible text and the nearest change of background colour (or other visible element), should be at least equal to the x-height of the text. This amount of space can be defined in em units as being equal to the ratio of x-height to font size.
The panel titled Calculating the ratio of x-height to font size (with examples) gives the required line-height and paragraph margins for some common fonts.
This text has adequate line spacing for Arial, with CSS line-height=1.30.
There is a space of 0.65em between this paragraph and one before it, which is adequate for Arial text. There is adequate padding between the text and the line around it, which is about equal to the x-height of the text.
Adequate line spacing, paragraph spacing and padding
The text in this box doesn’t have enough padding around it. The box around the text disrupts the shapes of the words, which makes them harder to read.
Not enough padding
The text in this box doesn’t have
enough space in between the lines,
which makes it harder to read.
Not enough line spacing
Footnotes
- Specifying the line height directly as a number with no units is the most robust solution, because this means the line height will scale with the font size of the element that the style is applied to, and scale with the font size for every child element inside it (even if the child element has a different font size).
- When used to specify margin or padding, the em unit is equal to the font size, which is a particularly convenient way of meeting the paragraph spacing requirements within the latest provisional draft (2026) of the EAA harmonised standard for print. More information on CSS units is available from the W3 schools page on units.
Providing flexible ways to access digital content
The European Accessibility Act (EAA) states that information should be made available via more than one sensory channel and should provide for flexible ways of improving vision clarity. In order to meet this requirement, digital text should usually:
- Support zoom levels between 100 and 400%;
- Support high contrast modes;
- Be screen reader accessible.
Each of these recommendations will now be described in more detail.
Support zoom levels to 400%
The Reflow success criterion of the Web Content Accessibility Guidelines requires support for zoom levels between 100 and 400% in a browser window that is 1280 pixels wide.
Supporting these zoom levels is usually best achieved by configuring the website so that, as the zoom level increases, the website switches to mobile layout before the laptop layout breaks down.
Support high contrast modes
Clause 11.7 of the EAA harmonised standard for ICT (EN301549) requires that user interfaces follow the preferences that users have set for documented platform accessibility features, such as operating system-provided ‘high contrast mode’ or ‘increase contrast’ functions. These usually alter all foreground and background colours for all text throughout the operating system, and throughout all apps and websites. Overriding the default colours in this way is extremely effective in helping to make the text more readable for certain users.
To make sure apps and websites are compatible with high contrast modes, the most important things that developers need to do are usually:
- Avoid using transparent images and instead set the background colour on all images explicitly.
- Check all menus and active elements to make sure that colour is never the sole means of communicating something. For example, on navigational menus, a developer could indicate the current position by changing the font weight, in addition to the colours. Similarly, on active elements, the mouseover style could underline the text or change the line thickness of the borders, in addition to changing the colours.
Be screen reader accessible
In order to accommodate those with severe visual impairment or blindness, ICT products and websites should be accessible to screen readers. These requirements are covered in detail within the EAA harmonised standard for ICT (EN301549).
Apps and websites should also be tested with people with mild, moderate and severe vision impairments, to make sure that they are fit for purpose ‘in the likely conditions of use’ as discussed in the Testing with users page.
Styling hyperlinks within paragraphs
The Use of colour success criteria within the Web Content Accessibility Guidelines (2.2) states that colour must not be the only visual means of distinguishing a hyperlink from the surrounding text. Many websites underline the hyperlinks to meet this criteria, but this makes them harder to read.
A potentially better approach is to style the hyperlinks using a font-family and a font-weight that is different to the surrounding paragraphs of text. For example, this website uses Myriad Pro Semibold for hyperlinks and regular weight Verdana for paragraphs of text. It’s also helpful to additionally style the hyperlink text in a different colour to the surrounding text, typically using a blue tinted colour.
Examples
In this sentence, the hyperlink has a blue colour and has been underlined. This is not ideal, because although the underline makes the hyperlink stand out, it also interferes with the letters that have descenders (i.e. g,j,p,q,y), and therefore makes the text harder to read.
In this sentence, the hyperlink has a blue colour and has been underlined, but the text-underline-offset CSS property has been used to move the underline away from the descenders, which makes the hyperlink text easier to read.
In this sentence, the hyperlink has a blue colour, and also uses a different font-family and a different font-weight. This is potentially better, because it makes the hyperlink stand out, without making it harder to read. This approach could also be made even more distinctive by switching between a serif font and a sans-serif one, which would make a hyperlink look like this.
In this sentence, the hyperlink is only distinguished from the text around it by its colour. This is not recommended, because the blue colour on its own isn’t enough to make the hyperlink stand out, especially for those with impaired colour vision.
Calculating the ratio of x-height to font size (with examples)
For any font, a critical factor that controls the visual appearance of the text is the ratio of the x-height to the font size. This ratio is different for every font-family, and can be measured as follows:
- Type a lowercase letter "x" at a font size of 500 pt.
- Draw a rectangle that’s exactly the same height as the letter x.
- The ratio of x-height to font size is equal to the Rectangle Height (in cm) divided by 17.64 (rationale: the ‘x-height in pt’ is the ‘x-height in cm’ times 72 divided by 2.54; the font size has been set to 500pt, so the ratio of x-height to font size is therefore 72 / 2.54 * ‘x-height in cm’ / 500 = ‘x-height in cm’ / 17.63).
The table below gives the ratio of x-height to font size for some common fonts, together with the required font size for body paragraphs of html text, the line height and paragraph spacing.
This table is also available as an
Excel version and a CSV version
Footnotes
- The latest version (v4.1.1) of EN301549 requires an x-height of 8 CSS px for resizable text (i.e. body paragraphs of html text). The required font size for resizable text is therefore 8 divided by the ratio of x-height to font size.
- The latest provisional draft (2026) version of the EAA harmonised standard for print requires a baseline to baseline spacing of 2.5 times the x-height. In order to achieve this in a website, the CSS line-height (as a number with no units) should be 2.5 times the ratio of x-height to font size. Specifying the line height directly as a number with no units is the most robust solution, because this means the line height will scale with the font size of the element that the style is applied to, and scale with the font size for every child element inside it (even if the child element has a different font size).
- The latest provisional draft (2026) of the EAA harmonised standard for print requires a baseline to baseline spacing between paragraphs of 3.75 times the x-height. In order to achieve this in a website, the required margin-bottom (in em units) is therefore 1.25 times the ratio of x-height to font size. When used to specify margin or padding, the em unit is equal to the font size, which is a particularly convenient way of specifying paragraph spacing. More information on CSS units is available from the W3 schools page on units.
Feedback
We would welcome your feedback on this page:
Privacy policy. If your feedback comments warrant follow-up communication, we will send you an email using the details you have provided. Feedback comments are anonymized and then stored on our file server. If you select the option to receive or contribute to the news bulletin, we will store your name and email address on our file server for the purposes of managing your subscription. You can unsubscribe and have your details deleted at any time, by using our Unsubscribe form. If you select the option to receive an activation code, we will store your name and email address on our fileserver indefinitely. This information will only be used to contact you for the specific purpose that you have indicated; it will not be shared. We use this personal information with your consent, which you can withdraw at any time.
Read more about how we use your personal data. Any e-mails that are sent or received are stored on our mail server for up to 24 months.





