Random Color Generator

#4b1cef Color

Color Codes
Hex Code #4b1cef
RGB Code rgb(75, 28, 239)
HSL Code hsl(253, 87%, 52%)

#4b1cef Color Syntax

rgb()

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

 main {
    background-color: rgb(75, 28, 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(253, 87%, 52%);
  }

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 #4b1cef

RGB Code Hex Code Preview
rgb(75, 28, 239, 10%) #4b1cef1a  
rgb(75, 28, 239, 20%) #4b1cef33  
rgb(75, 28, 239, 40%) #4b1cef4C  
rgb(75, 28, 239, 60%) #4b1cef99  
rgb(75, 28, 239, 80%) #4b1cefCC  
rgb(75, 28, 239, 100%) #4b1cefFF  

Saturated and desaturated colors of #4b1cef

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

#4b1cef Color Usage In CSS

 body {
    color: #4b1cef;
    }
 p {
    color: rgb(75, 28, 239);
    }
 header {
    border-bottom:1px solid #4b1cef;
    }
Recent Random Colors