FAQ: CSS Color - RGB Colors

This community-built FAQ covers the “RGB Colors” exercise from the lesson “CSS Color”.

Paths and Courses
This exercise can be found in the following Codecademy content:

Web Development

Learn CSS

FAQs on the exercise RGB Colors

There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply (reply) below.

If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.

Join the Discussion. Help a fellow learner on their journey.

Ask or answer a question about this exercise by clicking reply (reply) below!

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources? Head here.

Looking for motivation to keep learning? Join our wider discussions.

Learn more about how to use this guide.

Found a bug? Report it!

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!

Why does the lesson keep referring to RGB colors as “decimal” colors? Isn’t that quite confusing since hex colors are also “hexadecimal”? Where does the decimal come in anyway?

1 Like

That is weird. It speaks to a confirmation bias of the lesson author. All we need to do is squeak past that and put it into our own perspective. Rear view mirror.

5 Likes

when they say they are equivalent, do they mean none is better than the other?. cause they obviously don’t mean interchangeable. or do they mean they can express the same number of colors?.

Using RGB , you have 256^3 different colors you can choose form, Using Hash, you have 16^6 different colors you can choose from. Both equal 16,777,216 colors. So yes,they express the same number of colors.

5 Likes

Hello everyone! I just noticed some of the hex value written in caps lock (capital letters) and some small letters? which one do you prefer? Thank you

1 Like

If you re-read the Hexadecimal lesson you would find that the colors can be in upper case or lower case or a mixture of both. But obviously, you need to choose one and stick to it for better readability of your code.

This is advisable.

Does it necessarily matter which format I use? I mean, is one more common or preferred in the industry than the other?

I personally prefer the aesthetic of hex values when looking at the code as a whole… will that preference potentially bite me in the butt later? :cold_sweat:

It doesn’t matter which format you use.