Random Color Generator

#f204aa Color

Color Codes
Hex Code #f204aa
RGB Code rgb(242, 04, 170)
HSL Code hsl(318, 97%, 48%)

#f204aa Color Syntax

rgb()

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

 main {
    background-color: rgb(242, 04, 170);
   }

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(318, 97%, 48%);
  }

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

RGB Code Hex Code Preview
rgb(242, 04, 170, 10%) #f204aa1a  
rgb(242, 04, 170, 20%) #f204aa33  
rgb(242, 04, 170, 40%) #f204aa4C  
rgb(242, 04, 170, 60%) #f204aa99  
rgb(242, 04, 170, 80%) #f204aaCC  
rgb(242, 04, 170, 100%) #f204aaFF  

Saturated and desaturated colors of #f204aa

HSL Code Preview
hsl(318, 10%, 48%)  
hsl(318, 20%, 48%)  
hsl(318, 40%, 48%)  
hsl(318, 60%, 48%)  
hsl(318, 80%, 48%)  
hsl(318, 100%, 48%)  

#f204aa Color Usage In CSS

 body {
    color: #f204aa;
    }
 p {
    color: rgb(242, 04, 170);
    }
 header {
    border-bottom:1px solid #f204aa;
    }
Recent Random Colors