Random Color Generator

#7251b0 Color

Color Codes
Hex Code #7251b0
RGB Code rgb(114, 81, 176)
HSL Code hsl(261, 38%, 50%)

#7251b0 Color Syntax

rgb()

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

 main {
    background-color: rgb(114, 81, 176);
   }

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(261, 38%, 50%);
  }

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 #7251b0

RGB Code Hex Code Preview
rgb(114, 81, 176, 10%) #7251b01a  
rgb(114, 81, 176, 20%) #7251b033  
rgb(114, 81, 176, 40%) #7251b04C  
rgb(114, 81, 176, 60%) #7251b099  
rgb(114, 81, 176, 80%) #7251b0CC  
rgb(114, 81, 176, 100%) #7251b0FF  

Saturated and desaturated colors of #7251b0

HSL Code Preview
hsl(261, 10%, 50%)  
hsl(261, 20%, 50%)  
hsl(261, 40%, 50%)  
hsl(261, 60%, 50%)  
hsl(261, 80%, 50%)  
hsl(261, 100%, 50%)  

#7251b0 Color Usage In CSS

 body {
    color: #7251b0;
    }
 p {
    color: rgb(114, 81, 176);
    }
 header {
    border-bottom:1px solid #7251b0;
    }
Recent Random Colors