Random Color Generator

#6a1a96 Color

Color Codes
Hex Code #6a1a96
RGB Code rgb(106, 26, 150)
HSL Code hsl(279, 70%, 35%)

#6a1a96 Color Syntax

rgb()

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

 main {
    background-color: rgb(106, 26, 150);
   }

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(279, 70%, 35%);
  }

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

RGB Code Hex Code Preview
rgb(106, 26, 150, 10%) #6a1a961a  
rgb(106, 26, 150, 20%) #6a1a9633  
rgb(106, 26, 150, 40%) #6a1a964C  
rgb(106, 26, 150, 60%) #6a1a9699  
rgb(106, 26, 150, 80%) #6a1a96CC  
rgb(106, 26, 150, 100%) #6a1a96FF  

Saturated and desaturated colors of #6a1a96

HSL Code Preview
hsl(279, 10%, 35%)  
hsl(279, 20%, 35%)  
hsl(279, 40%, 35%)  
hsl(279, 60%, 35%)  
hsl(279, 80%, 35%)  
hsl(279, 100%, 35%)  

#6a1a96 Color Usage In CSS

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