#d8c835 Color
Color Codes | |
---|---|
Hex Code | #d8c835 |
RGB Code | rgb(216, 200, 53) |
HSL Code | hsl(54, 68%, 53%) |
#d8c835 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(216, 200, 53); }
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(54, 68%, 53%); }
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 #d8c835
RGB Code | Hex Code | Preview |
---|---|---|
rgb(216, 200, 53, 10%) | #d8c8351a | |
rgb(216, 200, 53, 20%) | #d8c83533 | |
rgb(216, 200, 53, 40%) | #d8c8354C | |
rgb(216, 200, 53, 60%) | #d8c83599 | |
rgb(216, 200, 53, 80%) | #d8c835CC | |
rgb(216, 200, 53, 100%) | #d8c835FF |
Saturated and desaturated colors of #d8c835
HSL Code | Preview |
---|---|
hsl(54, 10%, 53%) | |
hsl(54, 20%, 53%) | |
hsl(54, 40%, 53%) | |
hsl(54, 60%, 53%) | |
hsl(54, 80%, 53%) | |
hsl(54, 100%, 53%) |
#d8c835 Color Usage In CSS
body { color: #d8c835; } p { color: rgb(216, 200, 53); } header { border-bottom:1px solid #d8c835; }