Why we need 2 kinds of colors code, RGB colors and Hex colors?


I don’t understand why we need 2 kinds of colors code?
In the lesson, it is said that “RGB values and hex color codes are different ways to represent the same thing: color” so why don’t we use either RGB or hex color?
Is there any case in which we can only use RGB ( or hex color)?



RGB are limited but you can set the opacity of that color code, something you can’t do with HEX, but you have so much more choice of color with HEX.

Hope that helps :slightly_smiling_face:


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.