Random Color Generator

#f0d406 Color

Color Codes
Hex Code #f0d406
RGB Code rgb(240, 212, 06)
HSL Code hsl(53, 95%, 48%)

#f0d406 Color Syntax

rgb()

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

 main {
    background-color: rgb(240, 212, 06);
   }

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(53, 95%, 48%);
  }

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 #f0d406

RGB Code Hex Code Preview
rgb(240, 212, 06, 10%) #f0d4061a  
rgb(240, 212, 06, 20%) #f0d40633  
rgb(240, 212, 06, 40%) #f0d4064C  
rgb(240, 212, 06, 60%) #f0d40699  
rgb(240, 212, 06, 80%) #f0d406CC  
rgb(240, 212, 06, 100%) #f0d406FF  

Saturated and desaturated colors of #f0d406

HSL Code Preview
hsl(53, 10%, 48%)  
hsl(53, 20%, 48%)  
hsl(53, 40%, 48%)  
hsl(53, 60%, 48%)  
hsl(53, 80%, 48%)  
hsl(53, 100%, 48%)  

#f0d406 Color Usage In CSS

 body {
    color: #f0d406;
    }
 p {
    color: rgb(240, 212, 06);
    }
 header {
    border-bottom:1px solid #f0d406;
    }
Recent Random Colors