Random Color Generator

#6a0e82 Color

Color Codes
Hex Code #6a0e82
RGB Code rgb(106, 14, 130)
HSL Code hsl(288, 81%, 28%)

#6a0e82 Color Syntax

rgb()

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

 main {
    background-color: rgb(106, 14, 130);
   }

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(288, 81%, 28%);
  }

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 #6a0e82

RGB Code Hex Code Preview
rgb(106, 14, 130, 10%) #6a0e821a  
rgb(106, 14, 130, 20%) #6a0e8233  
rgb(106, 14, 130, 40%) #6a0e824C  
rgb(106, 14, 130, 60%) #6a0e8299  
rgb(106, 14, 130, 80%) #6a0e82CC  
rgb(106, 14, 130, 100%) #6a0e82FF  

Saturated and desaturated colors of #6a0e82

HSL Code Preview
hsl(288, 10%, 28%)  
hsl(288, 20%, 28%)  
hsl(288, 40%, 28%)  
hsl(288, 60%, 28%)  
hsl(288, 80%, 28%)  
hsl(288, 100%, 28%)  

#6a0e82 Color Usage In CSS

 body {
    color: #6a0e82;
    }
 p {
    color: rgb(106, 14, 130);
    }
 header {
    border-bottom:1px solid #6a0e82;
    }
Recent Random Colors