Random Color Generator

#d4d315 Color

Color Codes
Hex Code #d4d315
RGB Code rgb(212, 211, 21)
HSL Code hsl(60, 82%, 46%)

#d4d315 Color Syntax

rgb()

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

 main {
    background-color: rgb(212, 211, 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(60, 82%, 46%);
  }

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

RGB Code Hex Code Preview
rgb(212, 211, 21, 10%) #d4d3151a  
rgb(212, 211, 21, 20%) #d4d31533  
rgb(212, 211, 21, 40%) #d4d3154C  
rgb(212, 211, 21, 60%) #d4d31599  
rgb(212, 211, 21, 80%) #d4d315CC  
rgb(212, 211, 21, 100%) #d4d315FF  

Saturated and desaturated colors of #d4d315

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

#d4d315 Color Usage In CSS

 body {
    color: #d4d315;
    }
 p {
    color: rgb(212, 211, 21);
    }
 header {
    border-bottom:1px solid #d4d315;
    }
Recent Random Colors