Random Color Generator

#9a2fc2 Color

Color Codes
Hex Code #9a2fc2
RGB Code rgb(154, 47, 194)
HSL Code hsl(284, 61%, 47%)

#9a2fc2 Color Syntax

rgb()

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

 main {
    background-color: rgb(154, 47, 194);
   }

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(284, 61%, 47%);
  }

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 #9a2fc2

RGB Code Hex Code Preview
rgb(154, 47, 194, 10%) #9a2fc21a  
rgb(154, 47, 194, 20%) #9a2fc233  
rgb(154, 47, 194, 40%) #9a2fc24C  
rgb(154, 47, 194, 60%) #9a2fc299  
rgb(154, 47, 194, 80%) #9a2fc2CC  
rgb(154, 47, 194, 100%) #9a2fc2FF  

Saturated and desaturated colors of #9a2fc2

HSL Code Preview
hsl(284, 10%, 47%)  
hsl(284, 20%, 47%)  
hsl(284, 40%, 47%)  
hsl(284, 60%, 47%)  
hsl(284, 80%, 47%)  
hsl(284, 100%, 47%)  

#9a2fc2 Color Usage In CSS

 body {
    color: #9a2fc2;
    }
 p {
    color: rgb(154, 47, 194);
    }
 header {
    border-bottom:1px solid #9a2fc2;
    }
Recent Random Colors