sudhakarinfotech
(current)
Run Code
Live Code Editor- HSL Color
Source Code
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>HSL Colors</title> <style type="text/css"> .custom--size { width: 100%; height: 50vh; margin-bottom: 1.5rem; } .bg-1 { background-color: hsl(180, 100%, 50%); } /* green */ .bg-2 { background-color: hsl(190, 100%, 75%); } /* light green */ .bg-3 { background-color: hsl(180, 100%, 25%); } /* dark green */ .bg-4 { background-color: hsl(170, 60%, 70%); } /* pastel green */ </style> </head> <body> <h1>HSL Colors</h1> <div class="bg-1 custom--size"></div> <div class="bg-2 custom--size"></div> <div class="bg-3 custom--size"></div> <div class="bg-4 custom--size"></div> </body> </html>
Source Code Output :
Running