HTML color codes are six-digit codes used in web design to define colors. These codes are written in hexadecimal format and start with a # symbol — like #FF5733
.
How to Read an HTML Color Code:
An HTML color code is written as:#RRGGBB
- RR = Red (00 to FF)
- GG = Green (00 to FF)
- BB = Blue (00 to FF)
Each pair is a hexadecimal value (base 16) ranging from 00 (0) to FF (255).
Example:
#FF0000
= Red#00FF00
= Green#0000FF
= Blue#FFFFFF
= White#000000
= Black
These codes help developers set consistent colors across websites and apps.