Random Color Generator

#b51a30 Color

Color Codes
Hex Code #b51a30
RGB Code rgb(181, 26, 48)
HSL Code hsl(351, 75%, 41%)

#b51a30 Color Syntax

rgb()

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

 main {
    background-color: rgb(181, 26, 48);
   }

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, 75%, 41%);
  }

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

RGB Code Hex Code Preview
rgb(181, 26, 48, 10%) #b51a301a  
rgb(181, 26, 48, 20%) #b51a3033  
rgb(181, 26, 48, 40%) #b51a304C  
rgb(181, 26, 48, 60%) #b51a3099  
rgb(181, 26, 48, 80%) #b51a30CC  
rgb(181, 26, 48, 100%) #b51a30FF  

Saturated and desaturated colors of #b51a30

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

#b51a30 Color Usage In CSS

 body {
    color: #b51a30;
    }
 p {
    color: rgb(181, 26, 48);
    }
 header {
    border-bottom:1px solid #b51a30;
    }
Recent Random Colors