Random Color Generator

#7b2ddc Color

Color Codes
Hex Code #7b2ddc
RGB Code rgb(123, 45, 220)
HSL Code hsl(267, 71%, 52%)

#7b2ddc Color Syntax

rgb()

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

 main {
    background-color: rgb(123, 45, 220);
   }

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(267, 71%, 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 #7b2ddc

RGB Code Hex Code Preview
rgb(123, 45, 220, 10%) #7b2ddc1a  
rgb(123, 45, 220, 20%) #7b2ddc33  
rgb(123, 45, 220, 40%) #7b2ddc4C  
rgb(123, 45, 220, 60%) #7b2ddc99  
rgb(123, 45, 220, 80%) #7b2ddcCC  
rgb(123, 45, 220, 100%) #7b2ddcFF  

Saturated and desaturated colors of #7b2ddc

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

#7b2ddc Color Usage In CSS

 body {
    color: #7b2ddc;
    }
 p {
    color: rgb(123, 45, 220);
    }
 header {
    border-bottom:1px solid #7b2ddc;
    }
Recent Random Colors