Random Color Generator

#5035fa Color

Color Codes
Hex Code #5035fa
RGB Code rgb(80, 53, 250)
HSL Code hsl(248, 95%, 59%)

#5035fa Color Syntax

rgb()

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

 main {
    background-color: rgb(80, 53, 250);
   }

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(248, 95%, 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 #5035fa

RGB Code Hex Code Preview
rgb(80, 53, 250, 10%) #5035fa1a  
rgb(80, 53, 250, 20%) #5035fa33  
rgb(80, 53, 250, 40%) #5035fa4C  
rgb(80, 53, 250, 60%) #5035fa99  
rgb(80, 53, 250, 80%) #5035faCC  
rgb(80, 53, 250, 100%) #5035faFF  

Saturated and desaturated colors of #5035fa

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

#5035fa Color Usage In CSS

 body {
    color: #5035fa;
    }
 p {
    color: rgb(80, 53, 250);
    }
 header {
    border-bottom:1px solid #5035fa;
    }
Recent Random Colors