Random Color Generator

#ba1a0e Color

Color Codes
Hex Code #ba1a0e
RGB Code rgb(186, 26, 14)
HSL Code hsl(4, 86%, 39%)

#ba1a0e Color Syntax

rgb()

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

 main {
    background-color: rgb(186, 26, 14);
   }

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(4, 86%, 39%);
  }

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

RGB Code Hex Code Preview
rgb(186, 26, 14, 10%) #ba1a0e1a  
rgb(186, 26, 14, 20%) #ba1a0e33  
rgb(186, 26, 14, 40%) #ba1a0e4C  
rgb(186, 26, 14, 60%) #ba1a0e99  
rgb(186, 26, 14, 80%) #ba1a0eCC  
rgb(186, 26, 14, 100%) #ba1a0eFF  

Saturated and desaturated colors of #ba1a0e

HSL Code Preview
hsl(4, 10%, 39%)  
hsl(4, 20%, 39%)  
hsl(4, 40%, 39%)  
hsl(4, 60%, 39%)  
hsl(4, 80%, 39%)  
hsl(4, 100%, 39%)  

#ba1a0e Color Usage In CSS

 body {
    color: #ba1a0e;
    }
 p {
    color: rgb(186, 26, 14);
    }
 header {
    border-bottom:1px solid #ba1a0e;
    }
Recent Random Colors