Random Color Generator

#f8c122 Color

Color Codes
Hex Code #f8c122
RGB Code rgb(248, 193, 34)
HSL Code hsl(45, 94%, 55%)

#f8c122 Color Syntax

rgb()

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

 main {
    background-color: rgb(248, 193, 34);
   }

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(45, 94%, 55%);
  }

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

RGB Code Hex Code Preview
rgb(248, 193, 34, 10%) #f8c1221a  
rgb(248, 193, 34, 20%) #f8c12233  
rgb(248, 193, 34, 40%) #f8c1224C  
rgb(248, 193, 34, 60%) #f8c12299  
rgb(248, 193, 34, 80%) #f8c122CC  
rgb(248, 193, 34, 100%) #f8c122FF  

Saturated and desaturated colors of #f8c122

HSL Code Preview
hsl(45, 10%, 55%)  
hsl(45, 20%, 55%)  
hsl(45, 40%, 55%)  
hsl(45, 60%, 55%)  
hsl(45, 80%, 55%)  
hsl(45, 100%, 55%)  

#f8c122 Color Usage In CSS

 body {
    color: #f8c122;
    }
 p {
    color: rgb(248, 193, 34);
    }
 header {
    border-bottom:1px solid #f8c122;
    }
Recent Random Colors