+3

How can we easily remember the codes for the color along with rgb codes

5/23/2020 4:05:29 AM

Ashwinvj

4 Answers

New Answer

+1

Ashwinvj Learn how to distinguish the (R)ed, (G)reen & (B)lue values in the decimal and hexadecimal values. There are 255 possible values of each color, and the decimal (R)ed, (G)reen & (B)lue values are separated by commas, whereas the hexadecimal (R)ed, (G)reen & (B)lue values are 2 digits from 00-ff grouped together as #RRGGBB. Copy and Paste this code in Code Playground HTML TAB and play with the numbers to see what is possible: <p>Color name "Red":</p> <h1 style="background-color:rgb(255, 0, 0);">rgb(255, 0, 0)</h1> <h1 style="background-color:#ff0000;">#ff0000</h1> <p>Color name "Green":</p> <h1 style="background-color:rgb(0, 255, 0);">rgb(0, 255, 0)</h1> <h1 style="background-color:#00ff00;">#00ff00</h1> <p>Color name "Blue":</p> <h1 style="background-color:rgb(0, 0, 255);">rgb(0, 0, 255)</h1> <h1 style="background-color:#0000ff;">#0000ff</h1>

+2

Thank you, but if it will be asked for some aptitude some other exams how can we remember that ???for that purpose I asked

+1

Man, using RGB you can generate 16M+ color codes and I bet you don't want to remember them. Instead you can use Google and get whatever color code you want.

+1

Thank.You Fr this 😊