What is RGB Color Code
RGB is most frequently used color code that is used due to quick color assignment to objects. In graphic designing and other image processing software used this technique for color assignment. All colors can be converted or can say in RGB color code format. The value of each color can be between 0 and 255. Here if we set the value of RGB as 255,255,255 subsequently, then it will generate white color.
What is Hex Color Code
Hex is another used color coding scheme. Which is almost
used in place of RGB color code. Hex means six, So that the
Hexa color code is a composition of six values prefixed by hash (#) symbol.
Out of these six digits first two for Red, Second for Green and in last and third
two digits are used for Blue color. In Hex color each digit can be from hexadecimal
number system means from 0 to F. Color code for White is #FFFFFF
and in the contrast
color code for Black is #000000
Basic Colors with RGB and Hex Values
Sr. | Color | RGB | Hex |
---|---|---|---|
1 | White | 255,255,255 | #FFFFFF |
2 | Black | 0,0,0 | #000000 |
3 | Red | 255,0,0 | #FF0000 |
4 | Green | 0,255,0 | #00FF00 |
5 | Blue | 0,0,255 | #0000FF |
We can find a clean solution about the use of Hexa code such as FF using Hexadecimal to Decimal Conversion, its value will be equivalent to 255.
