Random Color Generator

#4845ef Color

Color Codes
Hex Code #4845ef
RGB Code rgb(72, 69, 239)
HSL Code hsl(241, 84%, 60%)

#4845ef Color Syntax

rgb()

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

 main {
    background-color: rgb(72, 69, 239);
   }

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(241, 84%, 60%);
  }

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 #4845ef

RGB Code Hex Code Preview
rgb(72, 69, 239, 10%) #4845ef1a  
rgb(72, 69, 239, 20%) #4845ef33  
rgb(72, 69, 239, 40%) #4845ef4C  
rgb(72, 69, 239, 60%) #4845ef99  
rgb(72, 69, 239, 80%) #4845efCC  
rgb(72, 69, 239, 100%) #4845efFF  

Saturated and desaturated colors of #4845ef

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

#4845ef Color Usage In CSS

 body {
    color: #4845ef;
    }
 p {
    color: rgb(72, 69, 239);
    }
 header {
    border-bottom:1px solid #4845ef;
    }
Recent Random Colors