Random Color Generator

#f4cc2a Color

Color Codes
Hex Code #f4cc2a
RGB Code rgb(244, 204, 42)
HSL Code hsl(48, 90%, 56%)

#f4cc2a Color Syntax

rgb()

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

 main {
    background-color: rgb(244, 204, 42);
   }

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(48, 90%, 56%);
  }

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

RGB Code Hex Code Preview
rgb(244, 204, 42, 10%) #f4cc2a1a  
rgb(244, 204, 42, 20%) #f4cc2a33  
rgb(244, 204, 42, 40%) #f4cc2a4C  
rgb(244, 204, 42, 60%) #f4cc2a99  
rgb(244, 204, 42, 80%) #f4cc2aCC  
rgb(244, 204, 42, 100%) #f4cc2aFF  

Saturated and desaturated colors of #f4cc2a

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

#f4cc2a Color Usage In CSS

 body {
    color: #f4cc2a;
    }
 p {
    color: rgb(244, 204, 42);
    }
 header {
    border-bottom:1px solid #f4cc2a;
    }
Recent Random Colors