伊人av超碰伊人久久久,免费天堂无码成人av电影,成人麻豆亚洲综合无码精品,久久国产亚洲精品av香蕉

How to deal with the problem that the background color and foreground color in lighthouse scoring are not high enough in contrast

Mar 25, 2026
Industry information
0
On this page

Problem Description:

Display background color and foreground color is not high enough contrast

Make sure that all text elements have sufficient color contrast between the foreground text and the background color.

Guidelines for success: Make sure that the color contrast ratio is at least 4.5:1 for small text and 3:1 for large text, even if the text is part of an image. Depending on the requirements, large text is defined as 18pt(24 CSS pixels) or 14pt bold text (19 CSS pixels). Note: If an element is found to have a color contrast ratio of 1:1, the element will be considered "incomplete" and will need to be manually reviewed.

Why it matters:

Some people with low vision experience low contrast, which means there are not many bright or dark areas. All objects tend to exhibit the same brightness, which makes it difficult to distinguish between contours, borders, edges, and details. Text that is too close in brightness to the background may be difficult to read.

The number of people with low vision is almost three times the number of people who are completely blind. One in 12 people cannot see the full spectrum of colors-about 8 percent of men and 0.4 percent of women in the United States. People with low vision or color blindness cannot distinguish text in the background when the contrast is not enough.

The transparency and opacity of the color are taken into account in the background.

Color transparency and opacity in the foreground are more difficult to consider and deal with because:

  • The foreground and background are the same color.
  • CSS background gradient.
  • The background color in the CSS pseudo-element.
  • The background color created with the CSS border.
  • Overlapping with another element in the foreground-sometimes this comes up because of tricky positioning.
  • The element is moved out of the viewport via CSS.

Solution:

Open the Adobe Color Assist Tool https://color.adobe.com/zh/create/color-contrast-analyzer

Set the text color and background color as shown

Reference document:

https://dequeuniversity.com/rules/axe/4.11/color-contrast?lang=zh

Share on
Nickname*:
E-mail*:
Rate*:
Comments*:
About the author
JEAWIN
JEAWIN
JEAWIN,在外貿(mào)B2B營銷領(lǐng)域已有二十年的經(jīng)驗,擔任過編輯、SEO,數(shù)據(jù)分析師和營銷主管。他1998年就開始接觸互聯(lián)網(wǎng),曾在Thomas,GlobalSpec等國際知名工業(yè)B2B營銷公司(大中華區(qū))任職工作,2011年創(chuàng)建廈門杰贏網(wǎng)絡(luò)科技有限公司,為中國外貿(mào)企業(yè)提供高性價比品牌營銷服務(wù),尤其擅長工業(yè)品營銷和Google SEO營銷。

If you need to contact us, the following is our contact information.

If you need to contact us, the following is our contact information.
Contact Phone
Contact Mailbox
WeChat Contact
Jie Win Network
QQ
215168