Basic CSS Using RGB to Mix Colors

Hi everyone!

So I’m trying to submit my answers and it gives me an error that says I should use rgb to print the sienna color, and that’s exactly what I’m doing. Here’s the code:

  .red-text {
    color: rgb(255, 0, 0);
  .orchid-text {
    color: rgb(218, 112, 214);
  .sienna-text {
    color: rgb(160, 82, 45)
  .blue-text {
    color: rgb(0, 0, 255);

<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>

Here’s the error:

// running tests
You should use rgb
for the color sienna. // tests completed

All the other colors are marked as correct.

Thanks in advance for your help!

you need to put a semicolon after giving rgb to sienna text i.e.

.sienna-text { 
color: rgb(160, 82, 45);

and then it will pass all tests.

1 Like

Welcome, Fer.

I have moved your post to a more suitable sub-forum. Also, for future posts, please use the Get Help button on the lesson page, as this will prepopulate a post with necessary information, and you then just fill in the question blank.

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.

Note: Backticks are not single quotes.


1 Like

Thank you!

I tried that but it kept on saying that I needed to use rgb to trigger the color change.

this is working for me but I can’t understand why it is not working for you.
try to clear your browsing data and then try again .
hope it will solve your problem.

Also tried that :sweat_smile:

I decided to move on, it was probably some random bug. Thanks for your help!