The way how to add background color using HSL

Tell us what’s happening:

I have a problem with Adjust the tone of a color. As you can see my code below. I don’t know what’s happing and why is it tell me that The nav element should have a background color of the adjusted cyan tone using the HSL() property although I have put the color with the right demand.

Your code so far

  header {
    background-color: hsl(180, 90%, 35%);
    color: #FFFFFF;
  nav {
  h1 {
    text-indent: 10px;
    padding-top: 10px;
  nav ul {
    margin: 0px;
    padding: 5px 0px 5px 30px;
  nav li {
    display: inline;
    margin-right: 20px;
  a {
    text-decoration: none;
    color: inherit;
  <h1>Cooking with FCC!</h1>
      <li><a href="">Home</a></li>
      <li><a href="">Classes</a></li>
      <li><a href="">Contact</a></li>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36.

Link to the challenge:

your color should be background-color: hsl(180, 80%, 25%); and not hsl(180, 100%, 50%);

1 Like

The color parameter that you set on your hsl property its the wrong color see:


Hue is a degree on the color wheel from 0 to 360. 0 is red, 120 is green, 240 is blue.


Saturation is a percentage value; 0% means a shade of gray and 100% is the full color.


Lightness is also a percentage; 0% is black, 100% is white.
hsl(hue, saturation%, lightness%);

So, your right property its that the @toats.mcgoats already give to you.
Source from here

1 Like