Color values in HTML can be defined in 3 ways which is using name, decimal and hexadecimal
Example:

Example using the name


Example using decimal value


Example using hexadecimal value


HTML Tutorials