#d7b822 Color
Color Codes | |
---|---|
Hex Code | #d7b822 |
RGB Code | rgb(215, 184, 34) |
HSL Code | hsl(50, 73%, 49%) |
#d7b822 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(215, 184, 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(50, 73%, 49%); }
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 #d7b822
RGB Code | Hex Code | Preview |
---|---|---|
rgb(215, 184, 34, 10%) | #d7b8221a | |
rgb(215, 184, 34, 20%) | #d7b82233 | |
rgb(215, 184, 34, 40%) | #d7b8224C | |
rgb(215, 184, 34, 60%) | #d7b82299 | |
rgb(215, 184, 34, 80%) | #d7b822CC | |
rgb(215, 184, 34, 100%) | #d7b822FF |
Saturated and desaturated colors of #d7b822
HSL Code | Preview |
---|---|
hsl(50, 10%, 49%) | |
hsl(50, 20%, 49%) | |
hsl(50, 40%, 49%) | |
hsl(50, 60%, 49%) | |
hsl(50, 80%, 49%) | |
hsl(50, 100%, 49%) |
#d7b822 Color Usage In CSS
body { color: #d7b822; } p { color: rgb(215, 184, 34); } header { border-bottom:1px solid #d7b822; }