Random Color Generator

#f8c215 Color

Color Codes
Hex Code #f8c215
RGB Code rgb(248, 194, 21)
HSL Code hsl(46, 94%, 53%)

#f8c215 Color Syntax

rgb()

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

 main {
    background-color: rgb(248, 194, 21);
   }

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(46, 94%, 53%);
  }

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

RGB Code Hex Code Preview
rgb(248, 194, 21, 10%) #f8c2151a  
rgb(248, 194, 21, 20%) #f8c21533  
rgb(248, 194, 21, 40%) #f8c2154C  
rgb(248, 194, 21, 60%) #f8c21599  
rgb(248, 194, 21, 80%) #f8c215CC  
rgb(248, 194, 21, 100%) #f8c215FF  

Saturated and desaturated colors of #f8c215

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

#f8c215 Color Usage In CSS

 body {
    color: #f8c215;
    }
 p {
    color: rgb(248, 194, 21);
    }
 header {
    border-bottom:1px solid #f8c215;
    }
Recent Random Colors