Random Color Generator

#dcd522 Color

Color Codes
Hex Code #dcd522
RGB Code rgb(220, 213, 34)
HSL Code hsl(58, 73%, 50%)

#dcd522 Color Syntax

rgb()

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

 main {
    background-color: rgb(220, 213, 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(58, 73%, 50%);
  }

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

RGB Code Hex Code Preview
rgb(220, 213, 34, 10%) #dcd5221a  
rgb(220, 213, 34, 20%) #dcd52233  
rgb(220, 213, 34, 40%) #dcd5224C  
rgb(220, 213, 34, 60%) #dcd52299  
rgb(220, 213, 34, 80%) #dcd522CC  
rgb(220, 213, 34, 100%) #dcd522FF  

Saturated and desaturated colors of #dcd522

HSL Code Preview
hsl(58, 10%, 50%)  
hsl(58, 20%, 50%)  
hsl(58, 40%, 50%)  
hsl(58, 60%, 50%)  
hsl(58, 80%, 50%)  
hsl(58, 100%, 50%)  

#dcd522 Color Usage In CSS

 body {
    color: #dcd522;
    }
 p {
    color: rgb(220, 213, 34);
    }
 header {
    border-bottom:1px solid #dcd522;
    }
Recent Random Colors