Learn CSS rules by building a set of colored markers. Step 23

Hello,

Did everyone notice that in Step 23 when you use rgb(0, 255, 0) instead of the keyword green your green is different color? It is rather more acidic than if you use the keyword green. Why is that?

h1 {
text-align: center;
}

.container {
background-color: rgb(0, 0, 0);
}

.marker {
width: 200px;
height: 25px;
margin: 10px auto;
}

.one {
background-color: rgb(255, 0, 0);
}

.two {
background-color: rgb(0, 255, 0);
}

.three {
background-color: rgb(0, 0, 255);
}

Because the named color green is not rgb(0, 255, 0) but rgb(0,128,0)

the name for rgb(0, 255, 0) is lime

you can see the colors of all named colors here:

Thanks. Actually this is explained in the next step, step 24 :man_facepalming: