💡Did you know that hex values work the same as writing rgb()?💡
You're just writing the red,green and blue values in hexadecimal rather than decimal.
Checkout how you convert from hex back to decimal 👇
Hexadecimal is a numbering system that uses 16 as a base, where as normal numbers use 10.
That's why there are all these weird letters in hex values, because after 9 we run out of unique number characters.
Using hexadecimals is slightly more efficient as you can represent a 3 digit decimal (255) in just two digits (ff).
It also translates down to binary really easily