Random Color Generator

#f31778 Color

Color Codes
Hex Code #f31778
RGB Code rgb(243, 23, 120)
HSL Code hsl(334, 90%, 52%)

#f31778 Color Syntax

rgb()

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

 main {
    background-color: rgb(243, 23, 120);
   }

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(334, 90%, 52%);
  }

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

RGB Code Hex Code Preview
rgb(243, 23, 120, 10%) #f317781a  
rgb(243, 23, 120, 20%) #f3177833  
rgb(243, 23, 120, 40%) #f317784C  
rgb(243, 23, 120, 60%) #f3177899  
rgb(243, 23, 120, 80%) #f31778CC  
rgb(243, 23, 120, 100%) #f31778FF  

Saturated and desaturated colors of #f31778

HSL Code Preview
hsl(334, 10%, 52%)  
hsl(334, 20%, 52%)  
hsl(334, 40%, 52%)  
hsl(334, 60%, 52%)  
hsl(334, 80%, 52%)  
hsl(334, 100%, 52%)  

#f31778 Color Usage In CSS

 body {
    color: #f31778;
    }
 p {
    color: rgb(243, 23, 120);
    }
 header {
    border-bottom:1px solid #f31778;
    }
Recent Random Colors