Random Color Generator

#f81b3c Color

Color Codes
Hex Code #f81b3c
RGB Code rgb(248, 27, 60)
HSL Code hsl(351, 94%, 54%)

#f81b3c Color Syntax

rgb()

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

 main {
    background-color: rgb(248, 27, 60);
   }

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(351, 94%, 54%);
  }

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

RGB Code Hex Code Preview
rgb(248, 27, 60, 10%) #f81b3c1a  
rgb(248, 27, 60, 20%) #f81b3c33  
rgb(248, 27, 60, 40%) #f81b3c4C  
rgb(248, 27, 60, 60%) #f81b3c99  
rgb(248, 27, 60, 80%) #f81b3cCC  
rgb(248, 27, 60, 100%) #f81b3cFF  

Saturated and desaturated colors of #f81b3c

HSL Code Preview
hsl(351, 10%, 54%)  
hsl(351, 20%, 54%)  
hsl(351, 40%, 54%)  
hsl(351, 60%, 54%)  
hsl(351, 80%, 54%)  
hsl(351, 100%, 54%)  

#f81b3c Color Usage In CSS

 body {
    color: #f81b3c;
    }
 p {
    color: rgb(248, 27, 60);
    }
 header {
    border-bottom:1px solid #f81b3c;
    }
Recent Random Colors