Random Color Generator

#d5c951 Color

Color Codes
Hex Code #d5c951
RGB Code rgb(213, 201, 81)
HSL Code hsl(55, 61%, 58%)

#d5c951 Color Syntax

rgb()

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

 main {
    background-color: rgb(213, 201, 81);
   }

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(55, 61%, 58%);
  }

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

RGB Code Hex Code Preview
rgb(213, 201, 81, 10%) #d5c9511a  
rgb(213, 201, 81, 20%) #d5c95133  
rgb(213, 201, 81, 40%) #d5c9514C  
rgb(213, 201, 81, 60%) #d5c95199  
rgb(213, 201, 81, 80%) #d5c951CC  
rgb(213, 201, 81, 100%) #d5c951FF  

Saturated and desaturated colors of #d5c951

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

#d5c951 Color Usage In CSS

 body {
    color: #d5c951;
    }
 p {
    color: rgb(213, 201, 81);
    }
 header {
    border-bottom:1px solid #d5c951;
    }
Recent Random Colors