Random Color Generator

#a26caa Color

Color Codes
Hex Code #a26caa
RGB Code rgb(162, 108, 170)
HSL Code hsl(292, 27%, 55%)

#a26caa Color Syntax

rgb()

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

 main {
    background-color: rgb(162, 108, 170);
   }

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(292, 27%, 55%);
  }

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

RGB Code Hex Code Preview
rgb(162, 108, 170, 10%) #a26caa1a  
rgb(162, 108, 170, 20%) #a26caa33  
rgb(162, 108, 170, 40%) #a26caa4C  
rgb(162, 108, 170, 60%) #a26caa99  
rgb(162, 108, 170, 80%) #a26caaCC  
rgb(162, 108, 170, 100%) #a26caaFF  

Saturated and desaturated colors of #a26caa

HSL Code Preview
hsl(292, 10%, 55%)  
hsl(292, 20%, 55%)  
hsl(292, 40%, 55%)  
hsl(292, 60%, 55%)  
hsl(292, 80%, 55%)  
hsl(292, 100%, 55%)  

#a26caa Color Usage In CSS

 body {
    color: #a26caa;
    }
 p {
    color: rgb(162, 108, 170);
    }
 header {
    border-bottom:1px solid #a26caa;
    }
Recent Random Colors