Color values

To create a color for the combination of Red, Green, and Blue colors (RGB), we use a hexadecimal notation (HEX). The lowest value of the hexadecimal number is 00 and the highest value is FF. To generate a color we need 3 pairs of two-character numbers preceded by the # sign. This color also can be generated using the rgb(r,g,b) method. The r, g, and b are the values from 0 to 225(00 to FF in hexadecimal notation).

Color

HEX

     RGB

 

#000000

rgb(0,0,0)

 

#FF0000

rgb(255,0,0)

 

#00FF00

rgb(0,255,0)

 

#0000FF

rgb(0,0,255)

 

#FFFF00

rgb(255,255,0)

 

#00FFFF

rgb(0,255,255)

 

#FF00FF

rgb(255,0,255)

 

#FFFFFF

rgb(255,255,255)






This website intents to provide free and high quality tutorials, examples, exercises and solutions, questions and answers of programming and scripting languages:
C, C++, C#, Java, VB.NET, Python, VBA,PHP & Mysql, SQL, JSP, ASP.NET,HTML, CSS, JQuery, JavaScript and other applications such as MS Excel, MS Access, and MS Word. However, we don't guarantee all things of the web are accurate. If you find any error, please report it then we will take actions to correct it as soon as possible.