CodeLab
Tutorials For Everyone
Run
<!Doctype HTML> <html> <head> <title>Colors By RGB Value</title> <style> .color-group{ background: #f4f4fb; display: flex; flex-wrap: wrap; } .single-color{ border-radius: 4px; flex: 40%; display: block; text-align: center; padding-top: 20px; padding-bottom: 20px; margin: 2px; box-sizing: border-box; } </style> </head> <body> <h2>These are some of RGB Colors</h2> <div class="color-group"> <div class="single-color" style="background:rgb(255,0,0);"> Red rgb(255,0,0) </div> <div class="single-color" style="background:rgb(0,255,0);"> Green rgb(0,255,0) </div> <div class="single-color" style="background:rgb(0,0,255);"> Blue rgb(0,0,255) </div> <div class="single-color" style="background:rgb(255,255,255);"> White rgb(255,255,255) </div> <div class="single-color" style="background:rgb(0,0,0); color: white;"> Black rgb(0,0,0) </div> <div class="single-color" style="background:rgb(255,0,0);"> rgb(255,120,120) </div> <div class="single-color" style="background:rgb(120,255,120);"> rgb(120,255,120) </div> <div class="single-color" style="background:rgb(120,120,255);"> rgb(0,0,255) </div> <div class="single-color" style="background:rgb(120,255,255);"> rgb(120,255,255) </div> <div class="single-color" style="background:rgb(120,120,120); color: white;"> rgb(120,120,120) </div> </div> </body> </html>