Random Color Generator

#f51498 Color

Color Codes
Hex Code #f51498
RGB Code rgb(245, 20, 152)
HSL Code hsl(325, 92%, 52%)

#f51498 Color Syntax

rgb()

 rgb(Red, Green, Blue);
 rgba(Red, Green, Blue, Alpha);

 main {
    background-color: rgb(245, 20, 152);
   }

R(red), G(green), B(blue) can be number between 0-255.
A parameter is a hex characters (0–9, A–F) and optional.

hsl()

 hsl(hue saturation lightness);
 hsl(hue saturation lightness / alpha);

 div {
  background-color: hsl(325, 92%, 52%);
  }

Saturation value is a percentage value between 0% unsaturated and 100% fully saturated.
Lightness value is a percentage value between 100% is white and 0% is black.

Lighter and darker colors of #f51498

RGB Code Hex Code Preview
rgb(245, 20, 152, 10%) #f514981a  
rgb(245, 20, 152, 20%) #f5149833  
rgb(245, 20, 152, 40%) #f514984C  
rgb(245, 20, 152, 60%) #f5149899  
rgb(245, 20, 152, 80%) #f51498CC  
rgb(245, 20, 152, 100%) #f51498FF  

Saturated and desaturated colors of #f51498

HSL Code Preview
hsl(325, 10%, 52%)  
hsl(325, 20%, 52%)  
hsl(325, 40%, 52%)  
hsl(325, 60%, 52%)  
hsl(325, 80%, 52%)  
hsl(325, 100%, 52%)  

#f51498 Color Usage In CSS

 body {
    color: #f51498;
    }
 p {
    color: rgb(245, 20, 152);
    }
 header {
    border-bottom:1px solid #f51498;
    }
Recent Random Colors