Random Color Generator

#a150ba Color

Color Codes
Hex Code #a150ba
RGB Code rgb(161, 80, 186)
HSL Code hsl(286, 43%, 52%)

#a150ba Color Syntax

rgb()

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

 main {
    background-color: rgb(161, 80, 186);
   }

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(286, 43%, 52%);
  }

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

RGB Code Hex Code Preview
rgb(161, 80, 186, 10%) #a150ba1a  
rgb(161, 80, 186, 20%) #a150ba33  
rgb(161, 80, 186, 40%) #a150ba4C  
rgb(161, 80, 186, 60%) #a150ba99  
rgb(161, 80, 186, 80%) #a150baCC  
rgb(161, 80, 186, 100%) #a150baFF  

Saturated and desaturated colors of #a150ba

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

#a150ba Color Usage In CSS

 body {
    color: #a150ba;
    }
 p {
    color: rgb(161, 80, 186);
    }
 header {
    border-bottom:1px solid #a150ba;
    }
Recent Random Colors