Random Color Generator

#f31418 Color

Color Codes
Hex Code #f31418
RGB Code rgb(243, 20, 24)
HSL Code hsl(359, 90%, 52%)

#f31418 Color Syntax

rgb()

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

 main {
    background-color: rgb(243, 20, 24);
   }

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(359, 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 #f31418

RGB Code Hex Code Preview
rgb(243, 20, 24, 10%) #f314181a  
rgb(243, 20, 24, 20%) #f3141833  
rgb(243, 20, 24, 40%) #f314184C  
rgb(243, 20, 24, 60%) #f3141899  
rgb(243, 20, 24, 80%) #f31418CC  
rgb(243, 20, 24, 100%) #f31418FF  

Saturated and desaturated colors of #f31418

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

#f31418 Color Usage In CSS

 body {
    color: #f31418;
    }
 p {
    color: rgb(243, 20, 24);
    }
 header {
    border-bottom:1px solid #f31418;
    }
Recent Random Colors