Random Color Generator

#f04780 Color

Color Codes
Hex Code #f04780
RGB Code rgb(240, 71, 128)
HSL Code hsl(340, 85%, 61%)

#f04780 Color Syntax

rgb()

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

 main {
    background-color: rgb(240, 71, 128);
   }

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(340, 85%, 61%);
  }

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 #f04780

RGB Code Hex Code Preview
rgb(240, 71, 128, 10%) #f047801a  
rgb(240, 71, 128, 20%) #f0478033  
rgb(240, 71, 128, 40%) #f047804C  
rgb(240, 71, 128, 60%) #f0478099  
rgb(240, 71, 128, 80%) #f04780CC  
rgb(240, 71, 128, 100%) #f04780FF  

Saturated and desaturated colors of #f04780

HSL Code Preview
hsl(340, 10%, 61%)  
hsl(340, 20%, 61%)  
hsl(340, 40%, 61%)  
hsl(340, 60%, 61%)  
hsl(340, 80%, 61%)  
hsl(340, 100%, 61%)  

#f04780 Color Usage In CSS

 body {
    color: #f04780;
    }
 p {
    color: rgb(240, 71, 128);
    }
 header {
    border-bottom:1px solid #f04780;
    }
Recent Random Colors