Random Color Generator

#7145e8 Color

Color Codes
Hex Code #7145e8
RGB Code rgb(113, 69, 232)
HSL Code hsl(256, 78%, 59%)

#7145e8 Color Syntax

rgb()

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

 main {
    background-color: rgb(113, 69, 232);
   }

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(256, 78%, 59%);
  }

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 #7145e8

RGB Code Hex Code Preview
rgb(113, 69, 232, 10%) #7145e81a  
rgb(113, 69, 232, 20%) #7145e833  
rgb(113, 69, 232, 40%) #7145e84C  
rgb(113, 69, 232, 60%) #7145e899  
rgb(113, 69, 232, 80%) #7145e8CC  
rgb(113, 69, 232, 100%) #7145e8FF  

Saturated and desaturated colors of #7145e8

HSL Code Preview
hsl(256, 10%, 59%)  
hsl(256, 20%, 59%)  
hsl(256, 40%, 59%)  
hsl(256, 60%, 59%)  
hsl(256, 80%, 59%)  
hsl(256, 100%, 59%)  

#7145e8 Color Usage In CSS

 body {
    color: #7145e8;
    }
 p {
    color: rgb(113, 69, 232);
    }
 header {
    border-bottom:1px solid #7145e8;
    }
Recent Random Colors