Random Color Generator

#940edc Color

Color Codes
Hex Code #940edc
RGB Code rgb(148, 14, 220)
HSL Code hsl(279, 88%, 46%)

#940edc Color Syntax

rgb()

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

 main {
    background-color: rgb(148, 14, 220);
   }

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, 88%, 46%);
  }

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 #940edc

RGB Code Hex Code Preview
rgb(148, 14, 220, 10%) #940edc1a  
rgb(148, 14, 220, 20%) #940edc33  
rgb(148, 14, 220, 40%) #940edc4C  
rgb(148, 14, 220, 60%) #940edc99  
rgb(148, 14, 220, 80%) #940edcCC  
rgb(148, 14, 220, 100%) #940edcFF  

Saturated and desaturated colors of #940edc

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

#940edc Color Usage In CSS

 body {
    color: #940edc;
    }
 p {
    color: rgb(148, 14, 220);
    }
 header {
    border-bottom:1px solid #940edc;
    }
Recent Random Colors