CodeLab
Tutorials For Everyone
Run
<!Doctype HTML> <html> <head> <title>Colors By HSLA 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; } .bg-pattern{ background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAATklEQVQoU2NkYGAwZmBgOMuAACA+CKCIMSIpADGRNaEYgKwQ3WQUjTCF6CYhWw2WAynEpgjmIpg7jUlSiM0TWK2GWUOUZ7ApxggeogIcABHJFtftKVfJAAAAAElFTkSuQmCC) repeat; } </style> </head> <body> <h2>These are some of Colors By HSLA Values</h2> <div class="color-group bg-pattern"> <div class="single-color" style="background:hsla(0, 100%, 50%, 0.0);"> hsla(0, 100%, 50%, 0.0) </div> <div class="single-color" style="background:hsla(0, 100%, 50%, 0.2);"> hsla(0, 100%, 50%, 0.2) </div> <div class="single-color" style="background:hsla(0, 100%, 50%, 0.4);"> hsla(0, 100%, 50%, 0.4) </div> <div class="single-color" style="background:hsla(0, 100%, 50%, 0.6);"> hsla(0, 100%, 50%, 0.6) </div> <div class="single-color" style="background:hsla(0, 100%, 50%, 0.8);"> hsla(0, 100%, 50%, 0.8) </div> <div class="single-color" style="background:hsla(0, 100%, 50%, 1.0);"> hsla(0, 100%, 50%, 1.0) </div> <div class="single-color" style="background:hsla(120, 100%, 50%, 0.0);"> hsla(120, 100%, 50%, 0.0) </div> <div class="single-color" style="background:hsla(120, 100%, 50%, 0.2);"> hsla(120, 100%, 50%, 0.2) </div> <div class="single-color" style="background:hsla(120, 100%, 50%, 0.4);"> hsla(120, 100%, 50%, 0.4) </div> <div class="single-color" style="background:hsla(120, 100%, 50%, 0.6);"> hsla(120, 100%, 50%, 0.6) </div> <div class="single-color" style="background:hsla(120, 100%, 50%, 0.8);"> hsla(120, 100%, 50%, 0.8) </div> <div class="single-color" style="background:hsla(120, 100%, 50%, 1.0);"> hsla(120, 100%, 50%, 1.0) </div> <div class="single-color" style="background:hsla(240, 100%, 50%, 0.0);"> hsla(240, 100%, 50%, 0.0) </div> <div class="single-color" style="background:hsla(240, 100%, 50%, 0.2);"> hsla(240, 100%, 50%, 0.2) </div> <div class="single-color" style="background:hsla(240, 100%, 50%, 0.4);"> hsla(240, 100%, 50%, 0.4) </div> <div class="single-color" style="background:hsla(240, 100%, 50%, 0.6);"> hsla(240, 100%, 50%, 0.6) </div> <div class="single-color" style="background:hsla(240, 100%, 50%, 0.8);"> hsla(240, 100%, 50%, 0.8) </div> <div class="single-color" style="background:hsla(240, 100%, 50%, 1.0);"> hsla(240, 100%, 50%, 1.0) </div> </div> </body> </html>