Use RGB to Mix Colors (ryltk)

Tell us what’s happening:

Hey, so i’m working on this lesson, and my code seems to be fit, and even rendering the color scheme, however it’s giving me an error, saying that half of the new code is wrong, whereas it’s written in the same format as the code that was passed.

Your code so far


<style>
  .red-text {
    color: rgb(225, 0, 0);
  }
  .orchid-text {
    color: rgb(218, 112, 214);
  }
  .sienna-text {
    color: rgb(160, 82, 45);
  }
  .blue-text {
    color: rgb(0, 0, 225);
  }
</style>

<h1 class="red-text">I am red!</h1>

<h1 class="orchid-text">I am orchid!</h1>

<h1 class="sienna-text">I am sienna!</h1>

<h1 class="blue-text">I am blue!</h1>
 .red-text {
    color: rgb(225, 0, 0);
  }

You have typo here. It should be:

 .red-text {
    color: rgb(255, 0, 0);
  }

Same for blue color, its 255, not 225.

oh man, it’s always that 1 small thing. Thank you.

1 Like