Random Color Generator

#a118db Color

Color Codes
Hex Code #a118db
RGB Code rgb(161, 24, 219)
HSL Code hsl(282, 80%, 48%)

#a118db Color Syntax

rgb()

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

 main {
    background-color: rgb(161, 24, 219);
   }

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(282, 80%, 48%);
  }

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

RGB Code Hex Code Preview
rgb(161, 24, 219, 10%) #a118db1a  
rgb(161, 24, 219, 20%) #a118db33  
rgb(161, 24, 219, 40%) #a118db4C  
rgb(161, 24, 219, 60%) #a118db99  
rgb(161, 24, 219, 80%) #a118dbCC  
rgb(161, 24, 219, 100%) #a118dbFF  

Saturated and desaturated colors of #a118db

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

#a118db Color Usage In CSS

 body {
    color: #a118db;
    }
 p {
    color: rgb(161, 24, 219);
    }
 header {
    border-bottom:1px solid #a118db;
    }
Recent Random Colors