Random Color Generator

#5028cb Color

Color Codes
Hex Code #5028cb
RGB Code rgb(80, 40, 203)
HSL Code hsl(255, 67%, 48%)

#5028cb Color Syntax

rgb()

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

 main {
    background-color: rgb(80, 40, 203);
   }

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(255, 67%, 48%);
  }

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 #5028cb

RGB Code Hex Code Preview
rgb(80, 40, 203, 10%) #5028cb1a  
rgb(80, 40, 203, 20%) #5028cb33  
rgb(80, 40, 203, 40%) #5028cb4C  
rgb(80, 40, 203, 60%) #5028cb99  
rgb(80, 40, 203, 80%) #5028cbCC  
rgb(80, 40, 203, 100%) #5028cbFF  

Saturated and desaturated colors of #5028cb

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

#5028cb Color Usage In CSS

 body {
    color: #5028cb;
    }
 p {
    color: rgb(80, 40, 203);
    }
 header {
    border-bottom:1px solid #5028cb;
    }
Recent Random Colors