Random Color Generator

#a228e9 Color

Color Codes
Hex Code #a228e9
RGB Code rgb(162, 40, 233)
HSL Code hsl(278, 81%, 54%)

#a228e9 Color Syntax

rgb()

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

 main {
    background-color: rgb(162, 40, 233);
   }

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(278, 81%, 54%);
  }

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

RGB Code Hex Code Preview
rgb(162, 40, 233, 10%) #a228e91a  
rgb(162, 40, 233, 20%) #a228e933  
rgb(162, 40, 233, 40%) #a228e94C  
rgb(162, 40, 233, 60%) #a228e999  
rgb(162, 40, 233, 80%) #a228e9CC  
rgb(162, 40, 233, 100%) #a228e9FF  

Saturated and desaturated colors of #a228e9

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

#a228e9 Color Usage In CSS

 body {
    color: #a228e9;
    }
 p {
    color: rgb(162, 40, 233);
    }
 header {
    border-bottom:1px solid #a228e9;
    }
Recent Random Colors