Random Color Generator

#a548eb Color

Color Codes
Hex Code #a548eb
RGB Code rgb(165, 72, 235)
HSL Code hsl(274, 80%, 60%)

#a548eb Color Syntax

rgb()

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

 main {
    background-color: rgb(165, 72, 235);
   }

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(274, 80%, 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 #a548eb

RGB Code Hex Code Preview
rgb(165, 72, 235, 10%) #a548eb1a  
rgb(165, 72, 235, 20%) #a548eb33  
rgb(165, 72, 235, 40%) #a548eb4C  
rgb(165, 72, 235, 60%) #a548eb99  
rgb(165, 72, 235, 80%) #a548ebCC  
rgb(165, 72, 235, 100%) #a548ebFF  

Saturated and desaturated colors of #a548eb

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

#a548eb Color Usage In CSS

 body {
    color: #a548eb;
    }
 p {
    color: rgb(165, 72, 235);
    }
 header {
    border-bottom:1px solid #a548eb;
    }
Recent Random Colors