Random Color Generator

#d4a002 Color

Color Codes
Hex Code #d4a002
RGB Code rgb(212, 160, 02)
HSL Code hsl(45, 98%, 42%)

#d4a002 Color Syntax

rgb()

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

 main {
    background-color: rgb(212, 160, 02);
   }

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, 98%, 42%);
  }

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

RGB Code Hex Code Preview
rgb(212, 160, 02, 10%) #d4a0021a  
rgb(212, 160, 02, 20%) #d4a00233  
rgb(212, 160, 02, 40%) #d4a0024C  
rgb(212, 160, 02, 60%) #d4a00299  
rgb(212, 160, 02, 80%) #d4a002CC  
rgb(212, 160, 02, 100%) #d4a002FF  

Saturated and desaturated colors of #d4a002

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

#d4a002 Color Usage In CSS

 body {
    color: #d4a002;
    }
 p {
    color: rgb(212, 160, 02);
    }
 header {
    border-bottom:1px solid #d4a002;
    }
Recent Random Colors