Random Color Generator

#f03271 Color

Color Codes
Hex Code #f03271
RGB Code rgb(240, 50, 113)
HSL Code hsl(340, 86%, 57%)

#f03271 Color Syntax

rgb()

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

 main {
    background-color: rgb(240, 50, 113);
   }

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, 86%, 57%);
  }

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

RGB Code Hex Code Preview
rgb(240, 50, 113, 10%) #f032711a  
rgb(240, 50, 113, 20%) #f0327133  
rgb(240, 50, 113, 40%) #f032714C  
rgb(240, 50, 113, 60%) #f0327199  
rgb(240, 50, 113, 80%) #f03271CC  
rgb(240, 50, 113, 100%) #f03271FF  

Saturated and desaturated colors of #f03271

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

#f03271 Color Usage In CSS

 body {
    color: #f03271;
    }
 p {
    color: rgb(240, 50, 113);
    }
 header {
    border-bottom:1px solid #f03271;
    }
Recent Random Colors