Random Color Generator

#7146f2 Color

Color Codes
Hex Code #7146f2
RGB Code rgb(113, 70, 242)
HSL Code hsl(255, 87%, 61%)

#7146f2 Color Syntax

rgb()

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

 main {
    background-color: rgb(113, 70, 242);
   }

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(255, 87%, 61%);
  }

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 #7146f2

RGB Code Hex Code Preview
rgb(113, 70, 242, 10%) #7146f21a  
rgb(113, 70, 242, 20%) #7146f233  
rgb(113, 70, 242, 40%) #7146f24C  
rgb(113, 70, 242, 60%) #7146f299  
rgb(113, 70, 242, 80%) #7146f2CC  
rgb(113, 70, 242, 100%) #7146f2FF  

Saturated and desaturated colors of #7146f2

HSL Code Preview
hsl(255, 10%, 61%)  
hsl(255, 20%, 61%)  
hsl(255, 40%, 61%)  
hsl(255, 60%, 61%)  
hsl(255, 80%, 61%)  
hsl(255, 100%, 61%)  

#7146f2 Color Usage In CSS

 body {
    color: #7146f2;
    }
 p {
    color: rgb(113, 70, 242);
    }
 header {
    border-bottom:1px solid #7146f2;
    }
Recent Random Colors