Random Color Generator

#f846aa Color

Color Codes
Hex Code #f846aa
RGB Code rgb(248, 70, 170)
HSL Code hsl(326, 93%, 62%)

#f846aa Color Syntax

rgb()

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

 main {
    background-color: rgb(248, 70, 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(326, 93%, 62%);
  }

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

RGB Code Hex Code Preview
rgb(248, 70, 170, 10%) #f846aa1a  
rgb(248, 70, 170, 20%) #f846aa33  
rgb(248, 70, 170, 40%) #f846aa4C  
rgb(248, 70, 170, 60%) #f846aa99  
rgb(248, 70, 170, 80%) #f846aaCC  
rgb(248, 70, 170, 100%) #f846aaFF  

Saturated and desaturated colors of #f846aa

HSL Code Preview
hsl(326, 10%, 62%)  
hsl(326, 20%, 62%)  
hsl(326, 40%, 62%)  
hsl(326, 60%, 62%)  
hsl(326, 80%, 62%)  
hsl(326, 100%, 62%)  

#f846aa Color Usage In CSS

 body {
    color: #f846aa;
    }
 p {
    color: rgb(248, 70, 170);
    }
 header {
    border-bottom:1px solid #f846aa;
    }
Recent Random Colors