Random Color Generator

#5f4cb0 Color

Color Codes
Hex Code #5f4cb0
RGB Code rgb(95, 76, 176)
HSL Code hsl(251, 40%, 49%)

#5f4cb0 Color Syntax

rgb()

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

 main {
    background-color: rgb(95, 76, 176);
   }

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(251, 40%, 49%);
  }

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 #5f4cb0

RGB Code Hex Code Preview
rgb(95, 76, 176, 10%) #5f4cb01a  
rgb(95, 76, 176, 20%) #5f4cb033  
rgb(95, 76, 176, 40%) #5f4cb04C  
rgb(95, 76, 176, 60%) #5f4cb099  
rgb(95, 76, 176, 80%) #5f4cb0CC  
rgb(95, 76, 176, 100%) #5f4cb0FF  

Saturated and desaturated colors of #5f4cb0

HSL Code Preview
hsl(251, 10%, 49%)  
hsl(251, 20%, 49%)  
hsl(251, 40%, 49%)  
hsl(251, 60%, 49%)  
hsl(251, 80%, 49%)  
hsl(251, 100%, 49%)  

#5f4cb0 Color Usage In CSS

 body {
    color: #5f4cb0;
    }
 p {
    color: rgb(95, 76, 176);
    }
 header {
    border-bottom:1px solid #5f4cb0;
    }
Recent Random Colors