Translate colors between formats seamlessly.
#----
rgb(--, --, --)
Current Color
The conversion process involves breaking the 6-digit Hex code into three pairs.
Each pair is a hexadecimal number (base-16) that needs to be converted to decimal (base-10). For example, FF in hex equals 255 in decimal.
A Hex code starts with a hash # followed by 6 characters. The characters can be numbers (0-9) or letters (A-F).
Example: #FF0000 is pure Red (Full Red, No Green, No Blue).
RGB stands for Red, Green, Blue. It is an additive color model because it describes how light is mixed to create colors on a screen.
Each channel ranges from 0 to 255.
rgb(0, 0, 0) is Black.
rgb(255, 255, 255) is White.
They represent the same data differently. Hex is more concise (preferred in CSS), while RGB is easier to understand logically.
Yes, shorthand codes like #F00 are automatically expanded to #FF0000.