Random Color Generator

#407e98 Color

Color Codes
Hex Code #407e98
RGB Code rgb(64, 126, 152)
HSL Code hsl(198, 41%, 42%)

#407e98 Color Syntax

rgb()

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

 main {
    background-color: rgb(64, 126, 152);
   }

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(198, 41%, 42%);
  }

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 #407e98

RGB Code Hex Code Preview
rgb(64, 126, 152, 10%) #407e981a  
rgb(64, 126, 152, 20%) #407e9833  
rgb(64, 126, 152, 40%) #407e984C  
rgb(64, 126, 152, 60%) #407e9899  
rgb(64, 126, 152, 80%) #407e98CC  
rgb(64, 126, 152, 100%) #407e98FF  

Saturated and desaturated colors of #407e98

HSL Code Preview
hsl(198, 10%, 42%)  
hsl(198, 20%, 42%)  
hsl(198, 40%, 42%)  
hsl(198, 60%, 42%)  
hsl(198, 80%, 42%)  
hsl(198, 100%, 42%)  

#407e98 Color Usage In CSS

 body {
    color: #407e98;
    }
 p {
    color: rgb(64, 126, 152);
    }
 header {
    border-bottom:1px solid #407e98;
    }
Recent Random Colors