Random Color Generator

#a045d7 Color

Color Codes
Hex Code #a045d7
RGB Code rgb(160, 69, 215)
HSL Code hsl(277, 65%, 56%)

#a045d7 Color Syntax

rgb()

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

 main {
    background-color: rgb(160, 69, 215);
   }

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(277, 65%, 56%);
  }

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 #a045d7

RGB Code Hex Code Preview
rgb(160, 69, 215, 10%) #a045d71a  
rgb(160, 69, 215, 20%) #a045d733  
rgb(160, 69, 215, 40%) #a045d74C  
rgb(160, 69, 215, 60%) #a045d799  
rgb(160, 69, 215, 80%) #a045d7CC  
rgb(160, 69, 215, 100%) #a045d7FF  

Saturated and desaturated colors of #a045d7

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

#a045d7 Color Usage In CSS

 body {
    color: #a045d7;
    }
 p {
    color: rgb(160, 69, 215);
    }
 header {
    border-bottom:1px solid #a045d7;
    }
Recent Random Colors