Random Color Generator

#b21251 Color

Color Codes
Hex Code #b21251
RGB Code rgb(178, 18, 81)
HSL Code hsl(336, 82%, 38%)

#b21251 Color Syntax

rgb()

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

 main {
    background-color: rgb(178, 18, 81);
   }

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(336, 82%, 38%);
  }

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

RGB Code Hex Code Preview
rgb(178, 18, 81, 10%) #b212511a  
rgb(178, 18, 81, 20%) #b2125133  
rgb(178, 18, 81, 40%) #b212514C  
rgb(178, 18, 81, 60%) #b2125199  
rgb(178, 18, 81, 80%) #b21251CC  
rgb(178, 18, 81, 100%) #b21251FF  

Saturated and desaturated colors of #b21251

HSL Code Preview
hsl(336, 10%, 38%)  
hsl(336, 20%, 38%)  
hsl(336, 40%, 38%)  
hsl(336, 60%, 38%)  
hsl(336, 80%, 38%)  
hsl(336, 100%, 38%)  

#b21251 Color Usage In CSS

 body {
    color: #b21251;
    }
 p {
    color: rgb(178, 18, 81);
    }
 header {
    border-bottom:1px solid #b21251;
    }
Recent Random Colors