Random Color Generator

#a115d0 Color

Color Codes
Hex Code #a115d0
RGB Code rgb(161, 21, 208)
HSL Code hsl(285, 82%, 45%)

#a115d0 Color Syntax

rgb()

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

 main {
    background-color: rgb(161, 21, 208);
   }

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(285, 82%, 45%);
  }

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

RGB Code Hex Code Preview
rgb(161, 21, 208, 10%) #a115d01a  
rgb(161, 21, 208, 20%) #a115d033  
rgb(161, 21, 208, 40%) #a115d04C  
rgb(161, 21, 208, 60%) #a115d099  
rgb(161, 21, 208, 80%) #a115d0CC  
rgb(161, 21, 208, 100%) #a115d0FF  

Saturated and desaturated colors of #a115d0

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

#a115d0 Color Usage In CSS

 body {
    color: #a115d0;
    }
 p {
    color: rgb(161, 21, 208);
    }
 header {
    border-bottom:1px solid #a115d0;
    }
Recent Random Colors