Random Color Generator

#f27aa1 Color

Color Codes
Hex Code #f27aa1
RGB Code rgb(242, 122, 161)
HSL Code hsl(341, 82%, 71%)

#f27aa1 Color Syntax

rgb()

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

 main {
    background-color: rgb(242, 122, 161);
   }

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(341, 82%, 71%);
  }

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

RGB Code Hex Code Preview
rgb(242, 122, 161, 10%) #f27aa11a  
rgb(242, 122, 161, 20%) #f27aa133  
rgb(242, 122, 161, 40%) #f27aa14C  
rgb(242, 122, 161, 60%) #f27aa199  
rgb(242, 122, 161, 80%) #f27aa1CC  
rgb(242, 122, 161, 100%) #f27aa1FF  

Saturated and desaturated colors of #f27aa1

HSL Code Preview
hsl(341, 10%, 71%)  
hsl(341, 20%, 71%)  
hsl(341, 40%, 71%)  
hsl(341, 60%, 71%)  
hsl(341, 80%, 71%)  
hsl(341, 100%, 71%)  

#f27aa1 Color Usage In CSS

 body {
    color: #f27aa1;
    }
 p {
    color: rgb(242, 122, 161);
    }
 header {
    border-bottom:1px solid #f27aa1;
    }
Recent Random Colors