What do they mean by a element color property?

Tell us what’s happening:

Hello. I am trying to change the font color, but I cannot figure out what they mean when they tell me about the contrast ratio being 7:1. Please clarify…

Your code so far

li > a{


The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.

You will need to take an additional step here so the code you wrote presents in an easy to read format.

Please copy/paste all the editor code showing in the challenge from where you just linked.

Replace these two sentences with your copied code.
Please leave the ``` line above and the ``` line below,
because they allow your code to properly format in the post.

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: Step 45

Link to the challenge:

HI @mslathan20 !

Read the hint message very carefully here


You should give the color property a contrast with the background of at least 7:1. Hint: I would use #dfdfe2

Once you use the correct color then it will pass

The purpose of a 7:1 contrast is to make sure users can easily read the text against the background.

Hope that helps!

(Looks like Jessica’s answering so I’ll let her go ahead, but for more info on color contrast here’s an article on MDN: Color contrast - Accessibility | MDN)

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.