Random Color Generator

#f5147d Color

Color Codes
Hex Code #f5147d
RGB Code rgb(245, 20, 125)
HSL Code hsl(332, 92%, 52%)

#f5147d Color Syntax

rgb()

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

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

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(332, 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 #f5147d

RGB Code Hex Code Preview
rgb(245, 20, 125, 10%) #f5147d1a  
rgb(245, 20, 125, 20%) #f5147d33  
rgb(245, 20, 125, 40%) #f5147d4C  
rgb(245, 20, 125, 60%) #f5147d99  
rgb(245, 20, 125, 80%) #f5147dCC  
rgb(245, 20, 125, 100%) #f5147dFF  

Saturated and desaturated colors of #f5147d

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

#f5147d Color Usage In CSS

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